summaryrefslogtreecommitdiff
path: root/f1elo
diff options
context:
space:
mode:
Diffstat (limited to 'f1elo')
-rw-r--r--f1elo/interface.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/f1elo/interface.py b/f1elo/interface.py
index a077986..6cb8fc6 100644
--- a/f1elo/interface.py
+++ b/f1elo/interface.py
@@ -50,6 +50,8 @@ class Interface:
def rate(self, date=None, _debug=False):
if date is None:
date = self.date
+ if date is None:
+ date = datetime.date.today()
elo = Elo(self.session)
race_query = self.session.query(Race).filter(Race.ranked == False)