python3 compatibility
This commit is contained in:
Ayub khan
2019-09-19 17:03:22 +05:00
parent 5801f00006
commit d1b5c51be2

View File

@@ -62,7 +62,7 @@ class Command(BaseCommand):
)
return
for batch_num in range(num_batches):
for batch_num in range(int(num_batches)):
start = batch_num * batch_size + 1 # ids are 1-based, so add 1
end = min(start + batch_size, total + 1)
expire_old_entitlements.delay(start, end, logid=str(batch_num))