fdfd
This commit is contained in:
parent
5bf3382158
commit
1a2a2643f7
8 changed files with 21 additions and 21 deletions
|
@ -14,7 +14,7 @@ from .clients import *
|
|||
from drama.__main__ import Base, cache
|
||||
from drama.helpers.security import *
|
||||
|
||||
domain = environ.get("domain").strip()
|
||||
site = environ.get("domain").strip()
|
||||
|
||||
class User(Base, Stndrd, Age_times):
|
||||
__tablename__ = "users"
|
||||
|
@ -443,12 +443,12 @@ class User(Base, Stndrd, Age_times):
|
|||
@property
|
||||
def banner_url(self):
|
||||
if self.bannerurl: return self.bannerurl
|
||||
else: return f"https://{domain}/assets/images/default_bg.png"
|
||||
else: return f"https://{site}/assets/images/default_bg.png"
|
||||
|
||||
@cache.memoize(0)
|
||||
def defaultpicture(self):
|
||||
pic = random.randint(1, 50)
|
||||
return f"https://{domain}/assets/images/defaultpictures/{pic}.png"
|
||||
return f"https://{site}/assets/images/defaultpictures/{pic}.png"
|
||||
|
||||
@property
|
||||
def profile_url(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue