fix string formatting to db

This commit is contained in:
Aaron Kimbre 2022-04-01 10:31:59 -05:00
parent 27c4f1a7f2
commit 520c5f2d40

View File

@ -120,6 +120,9 @@ def reject(id):
# send rejection reason to their mailbox # send rejection reason to their mailbox
# cause the game doesn't present it otherwise # cause the game doesn't present it otherwise
mail_message = "Rejected Property " + \
f"{property_data.name if property_data.name else zone_name} " + \
f"with reason \"{form.rejection_reason.data}\""""
Mail( Mail(
sender_id=0, sender_id=0,
sender_name=f"[GM] {current_user.username}", sender_name=f"[GM] {current_user.username}",
@ -127,7 +130,7 @@ def reject(id):
receiver_name=char_name, receiver_name=char_name,
time_sent=time.time(), time_sent=time.time(),
subject=f"Property {property_data.name} on {zone_name} Rejected", subject=f"Property {property_data.name} on {zone_name} Rejected",
body=message, body=mail_message,
attachment_id=0, attachment_id=0,
attachment_lot=0, attachment_lot=0,
attachment_count=0 attachment_count=0