We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6edcd1b commit 370a0e3Copy full SHA for 370a0e3
1 file changed
ietf/submit/migrations/0022_submission_check_json_upgrade.py
@@ -2,6 +2,8 @@
2
# Generated by Django 1.10.8 on 2017-10-27 06:34
3
from __future__ import unicode_literals
4
5
+from tqdm import tqdm
6
+
7
from django.db import migrations
8
9
# convert the SubmissionCheck.items to consistently be a dict, with the
@@ -13,11 +15,11 @@
13
15
# 'draft': <draftname>;
14
16
# 'modules': { <extracted module info> },
17
# }
-
18
+tqdm.monitor_interval = 0 # workaround for spurious error in tqdm's monitoring thread
19
20
def forwards(apps, schema_editor):
21
SubmissionCheck = apps.get_model('submit', 'SubmissionCheck')
- for check in SubmissionCheck.objects.all().order_by('id'):
22
+ for check in tqdm(SubmissionCheck.objects.all()):
23
# deal with these cases:
24
# * empty dictionary
25
# * empty list
0 commit comments