1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Add medal score

This commit is contained in:
Steffo 2019-08-03 12:42:37 +02:00
parent 44647dffd7
commit 97a7eef014

View file

@ -27,7 +27,11 @@ class Medal:
@declared_attr @declared_attr
def classes(self): 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): def __str__(self):
return self.name return self.name