bb
This commit is contained in:
parent
c0f3d5cb68
commit
d1edad9965
49 changed files with 117 additions and 118 deletions
|
@ -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=201"
|
||||
if self.agendaposter: return f"https://{site}/static/assets/images/defaultpictures/agendaposter/{random.randint(1, 50)}.webp?a=202"
|
||||
if self.profileurl: return self.profileurl
|
||||
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"
|
||||
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"
|
||||
|
||||
@lazy
|
||||
def json_popover(self, v):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue