This commit is contained in:
Aevann1 2022-02-14 23:07:31 +02:00
parent 83e029092b
commit 19a1f907a7
7 changed files with 11 additions and 11 deletions

View file

@ -146,7 +146,7 @@ class User(Base):
kwargs["passhash"] = self.hash_password(kwargs["password"])
kwargs.pop("password")
kwargs["created_utc"] = int(time.time())
if "created_utc" not in kwargs: kwargs["created_utc"] = int(time.time())
super().__init__(**kwargs)