Skip to content

Commit

Permalink
fix: Apply 16 length ID to all intro infos
Browse files Browse the repository at this point in the history
  • Loading branch information
noahpistilli committed Jul 6, 2024
1 parent ffb0bcf commit 725b606
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions theunderground/intro_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,10 @@ def add_intro_info():
db.session.add(intro_db)
db.session.commit()

if intro_db.cnt_type == ContentTypes.Video:
# Videos require the ID to be padded to 16 characters.
intro_db.cnt_id = 1000000000000000 + intro_db.cnt_id
db.session.add(intro_db)
db.session.commit()

# Max size for IDs is 16.
intro_db.cnt_id = 1000000000000000 + intro_db.cnt_id
db.session.add(intro_db)
db.session.commit()
update_intro_info_on_s3()

# Now encode image/video.
Expand Down

0 comments on commit 725b606

Please sign in to comment.