Remove special cases for unused awards.
Removes the following awards / fields on User: - flairlock - progressivestack - bird - longpost (pizzashill) - marseyawarded - rehab - deflector - mute - unmutable - eye (All-Seeing Eye) - alt (Alt-Seeing Eye) Primarily motivated by starting to remove some un-Mottelike cruft from core commenting/posting routes. Cleared out other inapplicable awards while in the process.
This commit is contained in:
parent
9de6f20dea
commit
3f360bb457
18 changed files with 77 additions and 582 deletions
|
@ -1084,11 +1084,9 @@ def admin_title_change(user_id, v):
|
|||
|
||||
user=g.db.query(User).filter_by(id=user.id).one_or_none()
|
||||
user.customtitle=new_name
|
||||
if request.values.get("locked"): user.flairchanged = int(time.time()) + 2629746
|
||||
else:
|
||||
user.flairchanged = None
|
||||
badge = user.has_badge(96)
|
||||
if badge: g.db.delete(badge)
|
||||
user.flairchanged = None
|
||||
if request.values.get("locked"):
|
||||
user.flairchanged = (2 << 30) - 1
|
||||
|
||||
g.db.add(user)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue