add: make gpa much harder
This commit is contained in:
parent
6245f9fd2e
commit
14c52b13fb
3 changed files with 17 additions and 12 deletions
|
@ -665,9 +665,9 @@ pub async fn get_user_gpa_request(
|
|||
let gpa = data.calculate_user_gpa(id).await;
|
||||
return Json(ApiReturn {
|
||||
ok: true,
|
||||
message: if gpa >= 3 {
|
||||
message: if gpa >= 3.0 {
|
||||
"cool".to_string()
|
||||
} else if gpa >= 4 {
|
||||
} else if gpa >= 4.0 {
|
||||
"extraordinary".to_string()
|
||||
} else {
|
||||
"ok".to_string()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue