dfsfsd
This commit is contained in:
parent
1bc0bf5233
commit
a16d56358c
9 changed files with 258 additions and 128 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue