dffd
parent
5172210934
commit
3962678a51
|
@ -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):
|
||||
|
|
|
@ -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."
|
||||
|
|
Loading…
Reference in New Issue