From b0d31f8622b06824f7c954b3e5121f51a31a556e Mon Sep 17 00:00:00 2001 From: Sketch <75850871+SketchMaster2001@users.noreply.github.com> Date: Sat, 6 Jul 2024 08:53:51 -0400 Subject: [PATCH] revert: Intro Info ID semantics --- theunderground/intro_info.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/theunderground/intro_info.py b/theunderground/intro_info.py index c462eb79..58805f0e 100644 --- a/theunderground/intro_info.py +++ b/theunderground/intro_info.py @@ -54,10 +54,12 @@ def add_intro_info(): 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() + # Wii Room requires video content id's to be 16 characters long. + if intro_db.cnt_type == ContentTypes.Video: + 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.