From baf58a5433c2b59e261f622e54a7cb3196ee597e Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sat, 20 Jul 2024 21:19:20 +0200 Subject: [PATCH] simpler person icon in calendar report --- core/models/troggle.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/models/troggle.py b/core/models/troggle.py index c99e59b..c2a88db 100644 --- a/core/models/troggle.py +++ b/core/models/troggle.py @@ -126,8 +126,9 @@ class Person(TroggleModel): 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}" + # insert code to extract src= url from the blrb text ? Or do it in the parser.. + photo_url = f"/person/{self.slug}" + return photo_url def surveyedleglength(self): return sum([personexpedition.surveyedleglength() for personexpedition in self.personexpedition_set.all()])