Add new user master_title_ids

This commit is contained in:
Ethan O'Brien
2024-05-03 13:21:24 -05:00
parent 77a340c6b5
commit d8a671bd9c
2 changed files with 5 additions and 2 deletions

View File

@@ -208,9 +208,12 @@ fn get_data(auth_key: &str, row: &str) -> JsonValue {
pub fn get_acc(auth_key: &str) -> JsonValue {
let mut user = get_data(auth_key, "userdata");
user["gem"]["total"] = (user["gem"]["charge"].as_i64().unwrap() + user["gem"]["free"].as_i64().unwrap()).into();
if user["master_music_ids"].len() != 637 {
if user["master_music_ids"].len() != NEW_USER["master_music_ids"].len() {
user["master_music_ids"] = NEW_USER["master_music_ids"].clone();
}
if user["master_title_ids"].is_empty() {
user["master_title_ids"] = NEW_USER["master_title_ids"].clone();
}
global::lp_modification(&mut user, 0, false);
return user;