diff --git a/web/webapp/models.py b/web/webapp/models.py index 6458576..34483a0 100644 --- a/web/webapp/models.py +++ b/web/webapp/models.py @@ -148,7 +148,6 @@ class Member(db.Model): def _get_status_uncached(self): now_date = datetime.datetime.now() now = now_date.year * 12 + (now_date.month - 1) - del now_date status = {} status['username'] = self.username @@ -233,7 +232,7 @@ class Member(db.Model): status['left'] = not active_payment if not active_payment: - status['next_unpaid'] = (None, None) + status['next_unpaid'] = (now_date.year, now_date.month) else: status['next_unpaid'] = self._yearmonth_increment(status['last_paid'])