예제 #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
파일: tasks.py 프로젝트: acekiller/NewsBlur
 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
파일: tasks.py 프로젝트: BILIHUBSU/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)
예제 #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)