master
Aevann1 2022-01-09 19:33:16 +02:00
parent 562de027c3
commit a195489edf
1 changed files with 3 additions and 3 deletions

View File

@ -441,10 +441,10 @@ class User(Base):
@property
@lazy
def profile_url(self):
if self.agendaposter: return f"https://{site}/static/assets/images/defaultpictures/agendaposter/{random.randint(1, 50)}.webp?a=200"
if self.agendaposter: return f"https://{site}/static/assets/images/defaultpictures/agendaposter/{random.randint(1, 50)}.webp?a=201"
if self.profileurl: return self.profileurl
if "rama" in site: return f"https://{site}/static/assets/images/defaultpictures/{random.randint(1, 150)}.webp?a=200"
return f"https://{site}/static/assets/images/default-profile-pic.webp"
if "rama" in site: return f"https://{site}/static/assets/images/defaultpictures/{random.randint(1, 150)}.webp?a=201"
return f"https://{site}/static/assets/images/default-profile-pic.webp?a=201"
@lazy
def json_popover(self, v):