mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 13:32:15 +00:00
Removed unnecessary function
This commit is contained in:
@@ -112,16 +112,6 @@ def get_versions_for_model(model):
|
||||
|
||||
return versions
|
||||
|
||||
def strip_duplicate_versions(versions): #probably don't need this function
|
||||
changed_versions = []
|
||||
last_serialized_data = None
|
||||
for version in versions:
|
||||
if last_serialized_data != version.serialized_data:
|
||||
changed_versions.append(version)
|
||||
last_serialized_data = version.serialized_data
|
||||
|
||||
return changed_versions
|
||||
|
||||
def get_previous_version(version):
|
||||
thisEventId = version.object_id
|
||||
thisVersionId = version.pk
|
||||
|
||||
Reference in New Issue
Block a user