Ejemplo n.º 1
0
 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()
Ejemplo n.º 2
0
 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()
Ejemplo n.º 3
0
 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()