(self, user, device, since, now, domain)
return add, rem, subscriptions
gets new, removed and current subscriptions
gets new, removed and current subscriptions
gets new removed and current subscriptions
def get_subscription_changes(self, user, device, since, now, domain):
        """gets new, removed and current subscriptions"""

        history = get_subscription_history(user, device, since, now)
        add, rem = subscription_diff(history)

        subscriptions = device.get_subscribed_podcasts()

        add = [podcast_data(p, domain) for p in add]
        rem = [p.url for p in rem]

        return add, rem, subscriptions
def get_subscription_changes ( self , user , device , since , now , domain ) : history = get_subscription_history ( user , device , since , now ) add , rem = subscription_diff ( history ) subscriptions = device . get_subscribed_podcasts ( ) add = [ podcast_data ( p , domain ) for p in add ] rem = [ p . url for p in rem ] return add , rem , subscriptions