fix subscription cancel webhook
This commit is contained in:
@@ -68,6 +68,8 @@ def process_webhook(notification):
|
||||
subscription = notification.subscription
|
||||
rs = Rower.objects.filter(subscription_id=subscription.id)
|
||||
if rs.count() == 0:
|
||||
with open('braintreewebhooks.log','a') as f:
|
||||
f.write('Could not find rowers with subscription ID '+subscription.id+'\n')
|
||||
return 0
|
||||
r = rs[0]
|
||||
result,mesg,errormsg = cancel_subscription(r,subscription.id)
|
||||
|
||||
@@ -1076,7 +1076,6 @@ class CourseSelectForm(forms.Form):
|
||||
manager = kwargs.pop('manager',None)
|
||||
super(CourseSelectForm,self).__init__(*args,**kwargs)
|
||||
if course is not None:
|
||||
print('aap',course)
|
||||
d_min = 0.5*course.distance
|
||||
d_max = 2*course.distance
|
||||
country = course.country
|
||||
|
||||
Reference in New Issue
Block a user