From 6607516ca8fddc6cad330e8789bb0f9dbcfdff3b Mon Sep 17 00:00:00 2001 From: emkael Date: Tue, 28 Oct 2014 16:56:09 +0100 Subject: * rate action defaults to today (to prevent rating dummy future races) --- f1elo/interface.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- cgit v1.2.3