mirror of
https://github.com/solero/houdini.git
synced 2024-12-23 14:03:38 +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