This commit is contained in:
Aevann1 2021-09-18 19:43:03 +02:00
parent 15016b331e
commit dbf462c4e2
4 changed files with 12 additions and 8 deletions

View file

@ -185,7 +185,7 @@ def monthly(v):
send_notification(NOTIFICATIONS_ACCOUNT, u, text)
g.db.bulk_save_objects(_awards)
g.db.add_all(_awards)
g.db.commit()
return {"message": "Monthly awards granted"}
@ -424,7 +424,7 @@ def badge_grant_post(v):
kind=name
))
g.db.bulk_save_objects(_awards)
g.db.add_all(_awards)
text = "You were given the following awards:\n\n"