From d1b5c51be2514515f865c2c3a2ccd3c2fa83d6ac Mon Sep 17 00:00:00 2001 From: Ayub khan Date: Thu, 19 Sep 2019 17:03:22 +0500 Subject: [PATCH] BOM-629 python3 compatibility --- .../entitlements/management/commands/expire_old_entitlements.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/djangoapps/entitlements/management/commands/expire_old_entitlements.py b/common/djangoapps/entitlements/management/commands/expire_old_entitlements.py index 7749afc7cb..c3a94c0a63 100644 --- a/common/djangoapps/entitlements/management/commands/expire_old_entitlements.py +++ b/common/djangoapps/entitlements/management/commands/expire_old_entitlements.py @@ -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))