mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 11:34:18 +00:00
Add medal score
This commit is contained in:
parent
44647dffd7
commit
97a7eef014
1 changed files with 5 additions and 1 deletions
|
@ -27,7 +27,11 @@ class Medal:
|
|||
|
||||
@declared_attr
|
||||
def classes(self):
|
||||
return Column(String)
|
||||
return Column(String, nullable=False, default="")
|
||||
|
||||
@declared_attr
|
||||
def score(self):
|
||||
return Column(Integer, nullable=False)
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
|
Loading…
Reference in a new issue