mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew.git
synced 2025-05-13 11:37:33 -05:00
Fix deck I think
This commit is contained in:
parent
30147724eb
commit
3e151feaef
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ pub fn deck(req: HttpRequest, body: String) -> HttpResponse {
|
|||
let mut user = userdata::get_acc(&key);
|
||||
|
||||
for (i, data) in user["deck_list"].members().enumerate() {
|
||||
if data["slot"].to_string() == body["slot"].to_string() {
|
||||
if data["slot"].as_i32().unwrap() == body["slot"].as_i32().unwrap() {
|
||||
user["deck_list"][i]["main_card_ids"] = body["main_card_ids"].clone();
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue