Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
pep-8 variable renaming in for loops in link_images_with_items
Browse files Browse the repository at this point in the history
  • Loading branch information
verbalhanglider committed May 26, 2017
1 parent 56dc99a commit 56dfd43
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ def handle(self, *args, **options):
stream_val = []
if cur.count() == 1:
cur = cur[0]
for g in n["images"]:
img_name = g["name"]
for n_image in n_image["images"]:
img_name = n_image["name"]
match = CatalogImage.objects.filter(title__contains=img_name)
if match.count() == 1:
img_id = match[0].id
Expand All @@ -59,4 +59,4 @@ def handle(self, *args, **options):
cur.images.stream_data = stream_val
cur.save()
else:
self.stderr.write("{} is not present in system".format(n["item"]))
self.stderr.write("{} is not present in system".format(n_item["item"]))

0 comments on commit 56dfd43

Please sign in to comment.