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:
@@ -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()])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user