X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/15cae7d86e624d8afdb7eac794b58990ded9e64b..f1ca816d6a3c478d7d0f8018a57aa6b8a0762201:/src/paypal/rest.py?ds=sidebyside diff --git a/src/paypal/rest.py b/src/paypal/rest.py index 4d2697229..11693cb8c 100644 --- a/src/paypal/rest.py +++ b/src/paypal/rest.py @@ -117,11 +117,6 @@ def check_agreement(agreement_id): return a.state == 'Active' -def user_is_subscribed(user): - agreements = BillingAgreement.objects.filter(user=user) - return any(agreement.check_agreement() for agreement in agreements) - - def execute_agreement(token): return paypalrestsdk.BillingAgreement.execute(token)