mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Don't upgrade premium users on stripe reimport.
This commit is contained in:
parent
61e1e963fe
commit
f5be5d0c26
1 changed files with 1 additions and 10 deletions
|
@ -49,16 +49,7 @@ class Command(BaseCommand):
|
|||
logging.debug(" ***> Couldn't find stripe_id=%s" % customer)
|
||||
failed.append(customer)
|
||||
try:
|
||||
if not user.profile.is_premium:
|
||||
user.profile.activate_premium()
|
||||
elif user.payments.all().count() != 1:
|
||||
user.profile.setup_premium_history()
|
||||
elif not user.profile.premium_expire:
|
||||
user.profile.setup_premium_history()
|
||||
elif user.profile.premium_expire > datetime.datetime.now() + datetime.timedelta(days=365):
|
||||
user.profile.setup_premium_history()
|
||||
else:
|
||||
logging.debug(" ---> %s is fine" % user.username)
|
||||
user.profile.setup_premium_history()
|
||||
except stripe.APIConnectionError:
|
||||
logging.debug(" ***> Failed: %s" % user.username)
|
||||
failed.append(user.username)
|
||||
|
|
Loading…
Add table
Reference in a new issue