summaryrefslogtreecommitdiffstats
path: root/core/models/troggle.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-10-05 15:33:01 +0300
committerPhilip Sargent <philip.sargent@gmail.com>2023-10-05 15:33:01 +0300
commit207513b8b5a641d94123fa48013f9e3b6aff24a9 (patch)
tree8898e93065b022476ced3709db25aa34b8cb27df /core/models/troggle.py
parented993761a17841bb9295b5a468c9c5716ba4ffb2 (diff)
downloadtroggle-207513b8b5a641d94123fa48013f9e3b6aff24a9.tar.gz
troggle-207513b8b5a641d94123fa48013f9e3b6aff24a9.tar.bz2
troggle-207513b8b5a641d94123fa48013f9e3b6aff24a9.zip
tests now work again
Diffstat (limited to 'core/models/troggle.py')
-rw-r--r--core/models/troggle.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/models/troggle.py b/core/models/troggle.py
index 9175eb6..84d15f6 100644
--- a/core/models/troggle.py
+++ b/core/models/troggle.py
@@ -117,8 +117,7 @@ class Person(TroggleModel):
max_expo_val = int(max_expo_year["year__max"]) + 1
for personexpedition in self.personexpedition_set.all():
- if not personexpedition.is_guest:
- notability += Decimal(1) / (max_expo_val - int(personexpedition.expedition.year))
+ notability += Decimal(1) / (max_expo_val - int(personexpedition.expedition.year))
return notability
def bisnotable(self):