From ee5468fdd746d0f9df1200a576aa6b0c707b6921 Mon Sep 17 00:00:00 2001 From: FreneticScribbler Date: Wed, 28 Jun 2023 13:39:54 +0100 Subject: [PATCH] Fix indenting, because apparently it had been sufficient time since I last pushed a pep8 mistake --- versioning/versioning.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/versioning/versioning.py b/versioning/versioning.py index 59d936c0..b546a7c5 100644 --- a/versioning/versioning.py +++ b/versioning/versioning.py @@ -161,14 +161,14 @@ class ModelComparison: # 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