awards: remove all award definitions
This commit is contained in:
parent
9211f17e25
commit
86ea70dfd3
3 changed files with 19 additions and 254 deletions
|
@ -224,13 +224,9 @@ class User(Base):
|
|||
@property
|
||||
@lazy
|
||||
def user_awards(self):
|
||||
|
||||
return_value = list(AWARDS2.values())
|
||||
|
||||
return_value = list(AWARDS_ENABLED.values())
|
||||
user_awards = g.db.query(AwardRelationship).filter_by(user_id=self.id)
|
||||
|
||||
for val in return_value: val['owned'] = user_awards.filter_by(kind=val['kind'], submission_id=None, comment_id=None).count()
|
||||
|
||||
return return_value
|
||||
|
||||
@property
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue