Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Don't need to put the history entries into a set

Roland Geiderfc8e437c5b25
diff --git a/wger/utils/models.py b/wger/utils/models.py
index 967518be3..dd7376fd0 100644
--- a/wger/utils/models.py
+++ b/wger/utils/models.py
@@ -99,6 +99,6 @@ class AbstractHistoryMixin:
def author_history(self):
"""Author history is the unique set of license authors from historical records"""
out = set()
- for history in set(self.history.all()):
+ for history in self.history.all():
out.add(history.license_author)
return set(out)