web: fix (None,None) next unpaid month during transfer matching for members returning after a membership hiatus ~enleth
parent
169a416c34
commit
5f997d9f8d
|
@ -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'])
|
||||
|
||||
|
|
Loading…
Reference in New Issue