mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Logic error.
This commit is contained in:
parent
742657fa64
commit
2942b5cedd
1 changed files with 1 additions and 1 deletions
|
@ -250,7 +250,7 @@ class Profile(models.Model):
|
|||
for payment in payment_history:
|
||||
if payment.payment_date > last_year:
|
||||
recent_payments_count += 1
|
||||
if payment.payment_date < oldest_recent_payment_date:
|
||||
if not oldest_recent_payment_date or payment.payment_date < oldest_recent_payment_date:
|
||||
oldest_recent_payment_date = payment.payment_date
|
||||
print " ---> %s payments" % len(payment_history)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue