mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
Deleting unstarred story as part of starred story cleanup.
This commit is contained in:
parent
f4832ce566
commit
86a73d7c91
1 changed files with 4 additions and 0 deletions
|
@ -2196,6 +2196,10 @@ class MStarredStory(mongo.Document):
|
|||
stat['stories'])
|
||||
if not dryrun and stat['_id']:
|
||||
cls.objects.filter(user_id=stat['_id']).delete()
|
||||
elif not dryrun and stat['_id'] == 0:
|
||||
print " ---> Deleting unstarred stories (user_id = 0)"
|
||||
cls.objects.filter(user_id=stat['_id']).delete()
|
||||
|
||||
|
||||
print " ---> Deleted %s stories in total." % total
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue