mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-25 17:05:05 +08:00
🐛 fix typo update
-> upsert
This commit is contained in:
parent
5c1170f6fb
commit
62a2755ecf
@ -149,7 +149,7 @@ def change_user_lang(user_id: str, lang_code: str):
|
||||
"""
|
||||
user = user_db.first(User(), "user_id = ?", user_id, default=User(user_id=user_id))
|
||||
user.profile["lang"] = lang_code
|
||||
user_db.update(user, "user_id = ?", user_id)
|
||||
user_db.upsert(user, "user_id = ?", user_id)
|
||||
_user_lang[user_id] = lang_code
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user