mai2: fix userWebOption

This commit is contained in:
Hay1tsme 2023-07-01 02:19:19 -04:00
parent 3e9cec3a20
commit c4c0566cd5

View File

@ -194,10 +194,10 @@ class Mai2Base:
user_id, self.version, upsert["userData"][0], False user_id, self.version, upsert["userData"][0], False
) )
if "UserWebOption" in upsert and len(upsert["UserWebOption"]) > 0: if "userWebOption" in upsert and len(upsert["userWebOption"]) > 0:
upsert["UserWebOption"][0]["isNetMember"] = True upsert["userWebOption"][0]["isNetMember"] = True
self.data.profile.put_web_option( self.data.profile.put_web_option(
user_id, self.version, upsert["UserWebOption"][0] user_id, self.version, upsert["userWebOption"][0]
) )
if "userGradeStatusList" in upsert and len(upsert["userGradeStatusList"]) > 0: if "userGradeStatusList" in upsert and len(upsert["userGradeStatusList"]) > 0: