fds
This commit is contained in:
parent
13d28c55e1
commit
874a8defa4
1 changed files with 1 additions and 3 deletions
|
@ -413,9 +413,7 @@ def badge_grant_post(v):
|
|||
|
||||
existing = user.has_badge(badge_id)
|
||||
if existing:
|
||||
g.db.delete(existing)
|
||||
g.db.commit()
|
||||
return redirect("/admin/badge_grant")
|
||||
return redirect("/badge_grant?error=User already has that badge!")
|
||||
|
||||
new_badge = Badge(badge_id=badge_id, user_id=user.id)
|
||||
send_notification(user.id, f"@AutoJanny has given you the following profile badge:\n\n\n\n{new_badge.name}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue