From 62e83669dea26064179492d0cb134a9122d1a70d Mon Sep 17 00:00:00 2001 From: Sketch <75850871+SketchMaster2001@users.noreply.github.com> Date: Sat, 29 Jun 2024 17:12:07 -0400 Subject: [PATCH] chore: Run black --- theunderground/concierge.py | 4 +++- url1/mii.py | 7 +++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/theunderground/concierge.py b/theunderground/concierge.py index 33f23b4e..e60a6cd6 100644 --- a/theunderground/concierge.py +++ b/theunderground/concierge.py @@ -49,7 +49,9 @@ def add_concierge(mii_id): ) for i in range(1, 8): - msg = MiiMsgInfo(mii_id=mii_id, type=i, seq=1, msg=form[f"message{i}"].data, face=1) + msg = MiiMsgInfo( + mii_id=mii_id, type=i, seq=1, msg=form[f"message{i}"].data, face=1 + ) db.session.add(msg) db.session.add(concierge_data) diff --git a/url1/mii.py b/url1/mii.py index 9bb35ecb..e132163a 100644 --- a/url1/mii.py +++ b/url1/mii.py @@ -41,9 +41,8 @@ def mii_met(mii_id): concierge_mii, mii_metadata = retrieved_data # Next, ensure we have msginfo data for this Mii. - db_msginfo = ( - MiiMsgInfo.query.filter_by(mii_id=mii_id) - .order_by(MiiMsgInfo.type.asc()) + db_msginfo = MiiMsgInfo.query.filter_by(mii_id=mii_id).order_by( + MiiMsgInfo.type.asc() ) if db_msginfo is None: # A Mii doesn't have to be a concierge Mii. @@ -63,7 +62,7 @@ def mii_met(mii_id): # Sequencing is handled by a newline in the messages. for i, msg in enumerate(info.msg.split("\n")): separate[info.type].append( - RepeatedElement({"seq": i+1, "msg": msg, "face": info.face}) + RepeatedElement({"seq": i + 1, "msg": msg, "face": info.face}) ) # Then, convert all separate types to our actual msginfo type.