Skip to content

Commit

Permalink
Fix indenting, because apparently it had been sufficient time since I…
Browse files Browse the repository at this point in the history
… last pushed a pep8 mistake
  • Loading branch information
FreneticScribbler committed Jun 28, 2023
1 parent 1ce6ec3 commit ee5468f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions versioning/versioning.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,14 @@ def item_changes(self):
# Build some dicts of what we have
item_dict = {} # build a list of items, key is the item_pk
for version in old_item_versions: # put all the old versions in a list
if version._model is None:
continue
compare = ModelComparison(old=version._object_version.object, **comparisonParams)
item_dict[version.object_id] = compare
if version._model is None:
continue
compare = ModelComparison(old=version._object_version.object, **comparisonParams)
item_dict[version.object_id] = compare

for version in new_item_versions: # go through the new versions
if version._model is None:
continue
continue
try:
compare = item_dict[version.object_id] # see if there's a matching old version
compare.new = version._object_version.object # then add the new version to the dictionary
Expand Down

0 comments on commit ee5468f

Please sign in to comment.