X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/349f8b311ecdf30a181b94a8c7747867bacca356..60123f2c3cb55d31b9ce973a794a0edbe2a282b9:/src/paypal/rest.py 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)