Exemplo n.º 1
0
    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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 def run(self, **kwargs):
     logging.debug(" ---> Sharing popular stories...")
     MSharedStory.share_popular_stories()
     
Exemplo n.º 4
0
 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)
Exemplo n.º 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)
Exemplo n.º 6
0
def SharePopularStories():
    logging.debug(" ---> Sharing popular stories...")
    MSharedStory.share_popular_stories(interactive=False)
Exemplo n.º 7
0
 def handle(self, *args, **options):
     MSharedStory.share_popular_stories()
Exemplo n.º 8
0
 def handle(self, *args, **options):
     MSharedStory.share_popular_stories(verbose=True)
Exemplo n.º 9
0
 def run(self, **kwargs):
     logging.debug(" ---> Sharing popular stories...")
     MSharedStory.share_popular_stories()
Exemplo n.º 10
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)