From 1339ffd757a4f4a936bfadc541cdc84a015004d9 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 24 Nov 2021 14:44:03 +0200 Subject: [PATCH] fsddfs --- files/classes/user.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/files/classes/user.py b/files/classes/user.py index dd9c6a716..cc3be2b0b 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -411,9 +411,10 @@ class User(Base): @property @lazy def profile_url(self): + if self.agendaposter: return f"http://{site}/assets/images/chuds/{random.randint(1, 10)}.webp?v=1" if self.profileurl: return self.profileurl - elif "rama" in site: return f"http://{site}/assets/images/defaultpictures/{random.randint(1, 150)}.webp?v=1" - else: return f"http://{site}/assets/images/default-profile-pic.webp" + if "rama" in site: return f"http://{site}/assets/images/defaultpictures/{random.randint(1, 150)}.webp?v=1" + return f"http://{site}/assets/images/default-profile-pic.webp" @property @lazy