def handle(self, *args, **options): """Perfom cleanup of Weblate database.""" cleanup_fulltext() cleanup_screenshot_files() with transaction.atomic(): cleanup_social_auth() for project in Project.objects.values_list('id', flat=True): cleanup_project(project) cleanup_suggestions()
def handle(self, *args, **options): """Perfom cleanup of Weblate database.""" cleanup_fulltext() cleanup_screenshot_files() with transaction.atomic(): cleanup_social_auth() for project in Project.objects.values_list('id', flat=True): cleanup_project(project) cleanup_suggestions() cleanup_stale_repos() cleanup_old_suggestions()
def handle(self, *args, **options): """Perfom cleanup of Weblate database.""" cleanup_screenshot_files() with transaction.atomic(): cleanup_social_auth() for project in Project.objects.values_list("id", flat=True): cleanup_project(project) cleanup_suggestions() cleanup_stale_repos() cleanup_old_suggestions() cleanup_old_comments()