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(" ---> Sharing popular stories...") shared = MSharedStory.share_popular_stories(interactive=False) if not shared: shared = MSharedStory.share_popular_stories(interactive=False, days=2)
def run(self, **kwargs): logging.debug(" ---> Sharing popular stories...") MSharedStory.share_popular_stories()
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 SharePopularStories(): logging.debug(" ---> Sharing popular stories...") MSharedStory.share_popular_stories(interactive=False)
def handle(self, *args, **options): MSharedStory.share_popular_stories()
def handle(self, *args, **options): MSharedStory.share_popular_stories(verbose=True)