This commit is contained in:
Aevann1 2022-01-17 17:03:51 +02:00
parent 6a61f3be89
commit 3e46b16f3e
1768 changed files with 60 additions and 61 deletions

View file

@ -433,10 +433,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=202"
if self.agendaposter: return f"https://{site}/static/assets/images/defaultpictures/agendaposter/{random.randint(1, 50)}.webp?a=203"
if self.profileurl: return self.profileurl
if "rama" in site: return f"https://{site}/static/assets/images/defaultpictures/{random.randint(1, 150)}.webp?a=202"
return f"https://{site}/static/assets/images/default-profile-pic.webp?a=202"
return f"https://{site}/static/assets/images/default-profile-pic.webp?a=203"
@lazy
def json_popover(self, v):