updated and cleaned
This commit is contained in:
@@ -34,7 +34,8 @@ class UsersTokens(CrudCollection):
|
||||
token: Mapped[str] = mapped_column(String, server_default="")
|
||||
domain: Mapped[str] = mapped_column(String, server_default="")
|
||||
expires_at: Mapped[TIMESTAMP] = mapped_column(
|
||||
TIMESTAMP(timezone=True), default=str(arrow.now().shift(days=3)),
|
||||
TIMESTAMP(timezone=True),
|
||||
default=str(arrow.now().shift(days=3)),
|
||||
)
|
||||
|
||||
# users = relationship("Users", back_populates="tokens", foreign_keys=[user_id])
|
||||
@@ -146,6 +147,7 @@ class Users(CrudCollection, SelectAction):
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
#
|
||||
# @classmethod
|
||||
# def create_action(cls, create_user: InsertUsers, token_dict):
|
||||
@@ -359,6 +361,7 @@ class People(CrudCollection, SelectAction):
|
||||
if self.middle_name:
|
||||
return f"{self.firstname} {self.middle_name} {self.surname}"
|
||||
return f"{self.firstname} {self.surname}"
|
||||
|
||||
#
|
||||
# @classmethod
|
||||
# def create_action(cls, data: InsertPerson, token):
|
||||
|
||||
Reference in New Issue
Block a user