Skip to content

Instantly share code, notes, and snippets.

@rtabor
rtabor / wipe_expired_subs.py
Created January 16, 2019 16:49
Dan T's updated script to wipe expired subs
import logging
import time
from dramafever.inapp_payments.tasks import process_receipt
from dramafever.premium.models import InAppReceipt, UserSubscription, PremiumState
LOGGER = logging.getLogger(__name__)
expired_subs = UserSubscription.objects.filter(
merchant_type__isnull=True,
@rtabor
rtabor / gist:ec07e89c7a9ff8b15dc1ecf13f40ce0d
Created January 15, 2019 21:21
Default Walls v2 behavior as of Utapau Release
Anon Users (No walls v1 or walls v2):
clips -> can_watch = True
comics -> can_read = False
episodes -> can_watch = True
Reg Users (No walls v1 or walls v2):
clips -> can_watch = True
comics -> can_read = False
episodes -> can_watch = True