From 725b606c0fbd504102032c7ceaee8726dd675de8 Mon Sep 17 00:00:00 2001 From: Sketch <75850871+SketchMaster2001@users.noreply.github.com> Date: Fri, 5 Jul 2024 20:26:23 -0400 Subject: [PATCH] fix: Apply 16 length ID to all intro infos --- theunderground/intro_info.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/theunderground/intro_info.py b/theunderground/intro_info.py index ec5a039d..c462eb79 100644 --- a/theunderground/intro_info.py +++ b/theunderground/intro_info.py @@ -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.