mirror of
https://gitea.tendokyu.moe/Hay1tsme/artemis.git
synced 2026-02-13 11:17:28 +08:00
wacca: fix options not saving
This commit is contained in:
@@ -746,7 +746,7 @@ class WaccaBase():
|
|||||||
user_id = self.data.profile.profile_to_aime_user(req.profileId)
|
user_id = self.data.profile.profile_to_aime_user(req.profileId)
|
||||||
|
|
||||||
for opt in req.optsUpdated:
|
for opt in req.optsUpdated:
|
||||||
self.data.profile.update_option(user_id, opt.id, opt.val)
|
self.data.profile.update_option(user_id, opt.opt_id, opt.opt_val)
|
||||||
|
|
||||||
for update in req.datesUpdated:
|
for update in req.datesUpdated:
|
||||||
pass
|
pass
|
||||||
|
|||||||
@@ -211,7 +211,7 @@ class WaccaProfileData(BaseData):
|
|||||||
)
|
)
|
||||||
|
|
||||||
conflict = sql.on_duplicate_key_update(
|
conflict = sql.on_duplicate_key_update(
|
||||||
value = sql.inserted.value
|
value = value
|
||||||
)
|
)
|
||||||
|
|
||||||
result = self.execute(conflict)
|
result = self.execute(conflict)
|
||||||
|
|||||||
Reference in New Issue
Block a user