summaryrefslogtreecommitdiff
path: root/f1elo
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2014-10-28 15:45:19 +0100
committeremkael <emkael@tlen.pl>2014-10-28 15:45:19 +0100
commite1dfc0b8eaea4e9e2f35f49ff55b750eb4b08da0 (patch)
treea85cc45dc4f22106263c2266900854a6f04b1b6e /f1elo
parent34794256c3041e4a22ca99978b22e4280c57a814 (diff)
* default for races.ranked
Diffstat (limited to 'f1elo')
-rw-r--r--f1elo/model.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/f1elo/model.py b/f1elo/model.py
index b60ff85..4b893dc 100644
--- a/f1elo/model.py
+++ b/f1elo/model.py
@@ -51,7 +51,7 @@ class Race(Base):
id = Column(Integer, primary_key=True)
race = Column(String(1024))
date = Column(Date)
- ranked = Column(Boolean)
+ ranked = Column(Boolean, default=False)
_type = Column(Integer, ForeignKey('race_types.id'))
type = relationship('RaceType', back_populates='races', order_by='Race.date')