mirror of
https://github.com/viq/NewsBlur.git
synced 2025-04-13 09:38:09 +00:00
Adding cleanup for users to find missing feeds.
This commit is contained in:
parent
8d537379f9
commit
1cc92d7d85
2 changed files with 3 additions and 1 deletions
|
@ -52,6 +52,7 @@ class CleanupUser(Task):
|
|||
|
||||
def run(self, user_id):
|
||||
UserSubscription.trim_user_read_stories(user_id)
|
||||
UserSubscription.verify_verify_feeds_scheduled(user_id)
|
||||
|
||||
if random.random() < 0.01:
|
||||
ss = MSocialServices.objects.get(user_id=user_id)
|
||||
|
|
|
@ -829,8 +829,9 @@ class UserSubscription(models.Model):
|
|||
usf.save()
|
||||
|
||||
@classmethod
|
||||
def verify_feeds_scheduled(cls, user):
|
||||
def verify_feeds_scheduled(cls, user_id):
|
||||
r = redis.Redis(connection_pool=settings.REDIS_FEED_POOL)
|
||||
user = User.objects.get(pk=user_id)
|
||||
subs = cls.objects.filter(user=user)
|
||||
feed_ids = [sub.feed.pk for sub in subs]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue