2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-17 01:07:07 +00:00

mugshots on expo page

This commit is contained in:
2024-07-20 19:10:05 +02:00
parent bca1123d4d
commit 41fff1f3dd
2 changed files with 11 additions and 1 deletions

View File

@@ -125,6 +125,10 @@ class Person(TroggleModel):
"""Boolean: is this person notable?"""
return self.notability() > Decimal(1) / Decimal(3)
def get_mugshot_url(self):
# insert code to extract src= url from the blub text
return f"/person/{self.slug}"
def surveyedleglength(self):
return sum([personexpedition.surveyedleglength() for personexpedition in self.personexpedition_set.all()])