Commit b5f931f8 authored by Weblate's avatar Weblate

Merge remote-tracking branch 'origin/master'

parents 0786ee2f 4797417f
...@@ -57,6 +57,8 @@ class WeblateCommand(BaseCommand): ...@@ -57,6 +57,8 @@ class WeblateCommand(BaseCommand):
Memory effective iteration over units. Memory effective iteration over units.
""" """
units = self.get_units(*args, **options).order_by('pk') units = self.get_units(*args, **options).order_by('pk')
if not units:
return
current = 0 current = 0
last = units.order_by('-pk')[0].pk last = units.order_by('-pk')[0].pk
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment