Skip to content

Commit

Permalink
chore: Run black
Browse files Browse the repository at this point in the history
  • Loading branch information
noahpistilli committed Jun 29, 2024
1 parent bf6d2c5 commit 62e8366
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 3 additions & 1 deletion theunderground/concierge.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
7 changes: 3 additions & 4 deletions url1/mii.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down

0 comments on commit 62e8366

Please sign in to comment.