wacca: add helpers for gacha, event and friend info, fix settings not being applied correctly

This commit is contained in:
Kevin Trocolli committed 2023-04-20 00:54:16 -04:00
1 parent 68b0894e47
commit 4d6afd757f
5 files changed
+93 -31

No files matched your search

+2 -2
View File
@@ -825,7 +825,7 @@ class WaccaBase:
resp.songDetail.grades = SongDetailGradeCountsV2(counts=grades)
else:
resp.songDetail.grades = SongDetailGradeCountsV1(counts=grades)
resp.songDetail.lock_state = 1
resp.songDetail.lockState = 1
return resp.make()
# TODO: Coop and vs data
@@ -971,7 +971,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.opt_id, opt.opt_val)
self.data.profile.update_option(user_id, opt.optId, opt.optVal)
for update in req.datesUpdated:
pass