mirror of
https://github.com/solero/houdini.git
synced 2025-08-09 20:24:05 +00:00
Add is_award check to Item model
This commit is contained in:
@@ -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'
|
||||
|
Reference in New Issue
Block a user