Skip to content

Commit af9a34c

Browse files
committed
Fixed Flake8 B020 in for loop of cqrs_sync.py
1 parent df4f925 commit af9a34c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dj_cqrs/management/commands/cqrs_sync.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ def handle(self, *args, **options):
6666
if progress:
6767
print('Processing {0} records with batch size {1}'.format(db_count, batch_size))
6868

69-
for qs in batch_qs(model.relate_cqrs_serialization(qs), batch_size=batch_size):
69+
for qs_ in batch_qs(model.relate_cqrs_serialization(qs), batch_size=batch_size):
7070
ts = time.time()
7171
cs = counter
72-
for instance in qs:
72+
for instance in qs_:
7373
counter += 1
7474
try:
7575
instance.cqrs_sync(queue=options['queue'])

0 commit comments

Comments
 (0)