2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-24 00:01:54 +00:00

simpler person icon in calendar report

This commit is contained in:
Philip Sargent 2024-07-20 21:19:20 +02:00
parent 41fff1f3dd
commit baf58a5433

View File

@ -126,8 +126,9 @@ class Person(TroggleModel):
return self.notability() > Decimal(1) / Decimal(3) return self.notability() > Decimal(1) / Decimal(3)
def get_mugshot_url(self): def get_mugshot_url(self):
# insert code to extract src= url from the blub text # insert code to extract src= url from the blrb text ? Or do it in the parser..
return f"/person/{self.slug}" photo_url = f"/person/{self.slug}"
return photo_url
def surveyedleglength(self): def surveyedleglength(self):
return sum([personexpedition.surveyedleglength() for personexpedition in self.personexpedition_set.all()]) return sum([personexpedition.surveyedleglength() for personexpedition in self.personexpedition_set.all()])