remotes/1693045480750635534/spooky-22
Aevann1 2021-08-19 15:27:36 +02:00
parent 5172210934
commit 3962678a51
2 changed files with 1 additions and 2 deletions

View File

@ -13,7 +13,6 @@ class BadgeDef(Base):
description = Column(String(64))
icon = Column(String(64))
kind = Column(Integer, default=1)
rank = Column(Integer, default=1)
qualification_expr = Column(String(128))
def __repr__(self):

View File

@ -123,7 +123,7 @@ def disablesignups(v):
@admin_level_required(4)
def badge_grant_get(v):
badge_types = g.db.query(BadgeDef).filter_by(kind=3).order_by(BadgeDef.rank).all()
badge_types = g.db.query(BadgeDef).filter_by(kind=3).all()
errors = {"already_owned": "That user already has that badge.",
"no_user": "That user doesn't exist."