Beispiel #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()
     cleanup_stale_repos()
Beispiel #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()