This commit is contained in:
Aevann1 2021-10-04 09:28:05 +02:00
parent d8444c58bc
commit 9308a31848
2 changed files with 1 additions and 7 deletions

View file

@ -400,10 +400,7 @@ def badge_grant_post(v):
"""
send_notification(NOTIFICATIONS_ACCOUNT, user, text)
if badge_id == 16 and user.has_badge(17):
g.db.query(Badge).options(lazyload('*')).filter_by(badge_id=17, user_id=user.id).delete()
elif badge_id in [21,22,23,24,25,28]:
if badge_id in [21,22,23,24,25,28]:
user.patron = int(str(badge_id)[-1])
grant_awards = {}