示例#1
0
文件: tasks.py 项目: qij3/NewsBlur
    def run(self, **kwargs):
        logging.debug(" ---> Finding spammers...")
        _, spammer_user_ids =  MSharedStory.count_potential_spammers()
        logging.debug(" ---> Found %s spammers, deleting..." % len(spammer_user_ids))
        for user_id in spammer_user_ids:
            user = User.objects.get(pk=user_id)
            user.profile.delete_user(confirm=True, fast=True)

        logging.debug(" ---> Sharing popular stories...")
        MSharedStory.share_popular_stories(interactive=False)
示例#2
0
文件: tasks.py 项目: 0077cc/NewsBlur
 def run(self, **kwargs):
     logging.debug(" ---> Sharing popular stories...")
     shared = MSharedStory.share_popular_stories(interactive=False)
     if not shared:
         shared = MSharedStory.share_popular_stories(interactive=False, days=2)
示例#3
0
 def run(self, **kwargs):
     logging.debug(" ---> Sharing popular stories...")
     MSharedStory.share_popular_stories()
     
示例#4
0
文件: tasks.py 项目: thongly/NewsBlur
 def run(self, **kwargs):
     logging.debug(" ---> Sharing popular stories...")
     shared = MSharedStory.share_popular_stories(interactive=False)
     if not shared:
         shared = MSharedStory.share_popular_stories(interactive=False,
                                                     days=2)
示例#5
0
    def run(self, **kwargs):
        logging.debug(" ---> Finding spammers...")
        MSharedStory.count_potential_spammers(destroy=True)

        logging.debug(" ---> Sharing popular stories...")
        MSharedStory.share_popular_stories(interactive=False)
示例#6
0
def SharePopularStories():
    logging.debug(" ---> Sharing popular stories...")
    MSharedStory.share_popular_stories(interactive=False)
示例#7
0
 def handle(self, *args, **options):
     MSharedStory.share_popular_stories()
示例#8
0
 def handle(self, *args, **options):
     MSharedStory.share_popular_stories(verbose=True)
示例#9
0
 def run(self, **kwargs):
     logging.debug(" ---> Sharing popular stories...")
     MSharedStory.share_popular_stories()
示例#10
0
文件: tasks.py 项目: zby1234/NewsBlur
    def run(self, **kwargs):
        logging.debug(" ---> Finding spammers...")
        MSharedStory.count_potential_spammers(destroy=True)

        logging.debug(" ---> Sharing popular stories...")
        MSharedStory.share_popular_stories(interactive=False)