This commit is contained in:
Aevann1 2021-09-19 20:22:57 +02:00
parent 1bc0bf5233
commit a16d56358c
9 changed files with 258 additions and 128 deletions

View file

@ -70,7 +70,7 @@ else:
}
}
class User(Base, Stndrd, Age_times):
class User(Base):
__tablename__ = "users"
id = Column(Integer, primary_key=True)
username = Column(String)
@ -180,6 +180,13 @@ class User(Base, Stndrd, Age_times):
super().__init__(**kwargs)
@property
@lazy
def created_date(self):
return time.strftime("%d %b %Y", time.gmtime(self.created_utc))
@property
@lazy
def user_awards(v):