コード例 #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
ファイル: popular_stories.py プロジェクト: zino974/NewsBlur
 def handle(self, *args, **options):
     MSharedStory.share_popular_stories()
コード例 #8
0
ファイル: popular_stories.py プロジェクト: rmoorman/NewsBlur
 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)