xrange to range

This commit is contained in:
2022-12-19 11:49:19 +01:00
parent 593f9025a1
commit c0f85896f0

View File

@@ -17,7 +17,7 @@ def forwards_func(apps, schema_editor):
Tasks = apps.get_model("tasks", "Task")
past_ids=[]
for elem in Tasks.objects.all():
for i in xrange(4):
for i in range(4):
sid = fet2020.utils.create_random_id()
if not sid in past_ids: break
time.sleep(0.1)