This commit is contained in:
Aevann1 2021-12-12 22:12:19 +02:00
parent 5a8ec0bf07
commit 4711c1938c
47 changed files with 176 additions and 176 deletions

View file

@ -413,14 +413,14 @@ class User(Base):
@lazy
def banner_url(self):
if self.bannerurl: return self.bannerurl
else: return f"https://{site}/assets/images/{site_name}/preview.webp?v=190
else: return f"https://{site}/assets/images/{site_name}/preview.webp?v=190"
@property
@lazy
def profile_url(self):
if self.agendaposter: return f"https://{site}/assets/images/defaultpictures/agendaposter/{random.randint(1, 50)}.webp?v=190
if self.agendaposter: return f"https://{site}/assets/images/defaultpictures/agendaposter/{random.randint(1, 50)}.webp?v=190"
if self.profileurl: return self.profileurl
if "rama" in site: return f"https://{site}/assets/images/defaultpictures/{random.randint(1, 150)}.webp?v=190
if "rama" in site: return f"https://{site}/assets/images/defaultpictures/{random.randint(1, 150)}.webp?v=190"
return f"https://{site}/assets/images/default-profile-pic.webp"
@property