3
2
forked from Dniel97/artemis

wacca: fix options not saving

This commit is contained in:
Hay1tsme 2023-03-03 12:40:03 -05:00
parent c5fc879af6
commit 4626ec36cd
2 changed files with 2 additions and 2 deletions

View File

@ -746,7 +746,7 @@ class WaccaBase():
user_id = self.data.profile.profile_to_aime_user(req.profileId)
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:
pass

View File

@ -211,7 +211,7 @@ class WaccaProfileData(BaseData):
)
conflict = sql.on_duplicate_key_update(
value = sql.inserted.value
value = value
)
result = self.execute(conflict)