sneed
This commit is contained in:
parent
f39a3dec17
commit
377b0bd1bc
2 changed files with 6 additions and 1 deletions
|
@ -175,7 +175,8 @@ def retry(f):
|
|||
return f(self, *args, **kwargs)
|
||||
except OperationalError as e:
|
||||
#self.session.rollback()
|
||||
raise(DatabaseOverload)
|
||||
#raise(DatabaseOverload)
|
||||
abort(500)
|
||||
except:
|
||||
self.session.rollback()
|
||||
return f(self, *args, **kwargs)
|
||||
|
|
|
@ -43,3 +43,7 @@ class AwardRelationship(Base):
|
|||
primaryjoin="AwardRelationship.comment_id==Comment.id",
|
||||
lazy="joined"
|
||||
)
|
||||
|
||||
@property
|
||||
def type(self):
|
||||
return AWARDS[self.kind]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue