mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew.git
synced 2025-05-13 11:37:33 -05:00
Update clear_rate.rs
This commit is contained in:
parent
a68a1f9e01
commit
3c30f99c14
1 changed files with 3 additions and 0 deletions
|
@ -149,6 +149,9 @@ fn update_live_score(id: i64, uid: i64, score: i64) {
|
||||||
live_id INT NOT NULL PRIMARY KEY,
|
live_id INT NOT NULL PRIMARY KEY,
|
||||||
score_data TEXT NOT NULL
|
score_data TEXT NOT NULL
|
||||||
)", params!());
|
)", params!());
|
||||||
|
if uid == 0 || score == 0 {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let info = lock_and_select("SELECT score_data FROM scores WHERE live_id=?1", params!(id)).unwrap_or(String::from("[]"));
|
let info = lock_and_select("SELECT score_data FROM scores WHERE live_id=?1", params!(id)).unwrap_or(String::from("[]"));
|
||||||
let scores = json::parse(&info).unwrap();
|
let scores = json::parse(&info).unwrap();
|
||||||
|
|
Loading…
Add table
Reference in a new issue