commit
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user