This commit is contained in:
Aevann1 2022-01-24 18:44:54 +02:00
parent 33814f71bb
commit 50029701f9
34 changed files with 105 additions and 105 deletions

View file

@ -426,15 +426,15 @@ class User(Base):
@lazy
def banner_url(self):
if self.bannerurl: return self.bannerurl
else: return f"{SITE_FULL}/static/assets/images/{SITE_NAME}/site_preview.webp?a=1"
else: return f"{SITE_FULL}/static/assets/images/{SITE_NAME}/site_preview.webp?a=1008"
@property
@lazy
def profile_url(self):
if self.agendaposter: return f"{SITE_FULL}/static/assets/images/defaultpictures/agendaposter/{random.randint(1, 51)}.webp?a=204"
if self.agendaposter: return f"{SITE_FULL}/static/assets/images/defaultpictures/agendaposter/{random.randint(1, 51)}.webp?a=1008"
if self.profileurl: return self.profileurl
if SITE_NAME == 'Drama': return f"{SITE_FULL}/static/assets/images/defaultpictures/{random.randint(1, 150)}.webp?a=202"
return f"{SITE_FULL}/static/assets/images/default-profile-pic.webp?a=204"
if SITE_NAME == 'Drama': return f"{SITE_FULL}/static/assets/images/defaultpictures/{random.randint(1, 150)}.webp?a=1008"
return f"{SITE_FULL}/static/assets/images/default-profile-pic.webp?a=1008"
@lazy
def json_popover(self, v):