Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2022-02-15 08:05:12 +01:00
parent 5b3d7fcf2c
commit 8af7ac8af4
71 changed files with 19992 additions and 19476 deletions

View File

@@ -2,10 +2,12 @@ from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from rowers.models import Rower,PaidPlan
from rowers.models import Rower, PaidPlan
# run once - copies plans to paypal
def planstopaypal(): # pragma: no cover
def planstopaypal(): # pragma: no cover
plans = PaidPlan.objects.all()
for plan in plans:
@@ -15,7 +17,7 @@ def planstopaypal(): # pragma: no cover
plan.save()
def is_existing_customer(rower): # pragma: no cover
def is_existing_customer(rower): # pragma: no cover
if rower.country is not None and rower.customer_id is not None and rower.country != '':
if rower.subscription_id is None or rower.subscription_id == '':
return False