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)
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)
def CleanSocialSpam(): logging.debug(" ---> Finding social spammers...") MSharedStory.count_potential_spammers(destroy=True)
def run(self, **kwargs): logging.debug(" ---> Finding social spammers...") MSharedStory.count_potential_spammers(destroy=True)
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)