mirror of
https://github.com/solero/houdini.git
synced 2024-11-09 20:58:20 +00:00
Add is_award check to Item model
This commit is contained in:
parent
842f5684ee
commit
92ac358bb6
@ -42,6 +42,9 @@ class Item(db.Model):
|
||||
def is_photo(self):
|
||||
return self.type == 9
|
||||
|
||||
def is_award(self):
|
||||
return self.type == 10
|
||||
|
||||
|
||||
class PenguinItem(db.Model):
|
||||
__tablename__ = 'penguin_item'
|
||||
|
Loading…
Reference in New Issue
Block a user