示例#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()
示例#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()
示例#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()