Skip to content

Commit

Permalink
logging count of dormant locales deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Aug 1, 2021
1 parent db7656f commit 69da1e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/common/tasks.py
Expand Up @@ -394,7 +394,8 @@ def delete_duplicate_locales(start_from=None): # pragma: no cover
def delete_dormant_locales(): # pragma: no cover
from core.concepts.models import LocalizedText

LocalizedText.objects.filter(name_locales__isnull=True, description_locales__isnull=True).delete()
deleted, _ = LocalizedText.objects.filter(name_locales__isnull=True, description_locales__isnull=True).delete()
logger.info('%s Dormant locales deleted' % deleted)

return 1

Expand Down

0 comments on commit 69da1e2

Please sign in to comment.