add siteuserdata

This commit is contained in:
jxxghp
2024-07-04 19:42:09 +08:00
parent 965e40e630
commit 28345817d9
14 changed files with 145 additions and 37 deletions
+1 -2
View File
@@ -1,4 +1,3 @@
import json
import time
from typing import Optional, Union
@@ -53,7 +52,7 @@ class MessageOper(DbOper):
"userid": userid,
"action": action,
"reg_time": time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()),
"note": json.dumps(note) if note else ''
"note": note
})
Message(**kwargs).create(self._db)