add user time kwargs

master
Aevann 2024-02-03 01:21:31 +02:00
parent ccb592c7f9
commit 2532229ec0
1 changed files with 3 additions and 0 deletions

View File

@ -183,8 +183,11 @@ class User(Base):
if "created_utc" not in kwargs:
kwargs["created_utc"] = int(time.time())
kwargs["last_active"] = kwargs["created_utc"]
kwargs["last_viewed_modmail_notifs"] = kwargs["created_utc"]
kwargs["last_viewed_post_notifs"] = kwargs["created_utc"]
kwargs["last_viewed_log_notifs"] = kwargs["created_utc"]
kwargs["last_viewed_reddit_notifs"] = kwargs["created_utc"]
super().__init__(**kwargs)