add: make gpa much harder
This commit is contained in:
parent
6245f9fd2e
commit
14c52b13fb
3 changed files with 17 additions and 12 deletions
|
@ -167,7 +167,7 @@
|
|||
("class" "notification chip")
|
||||
(text "GPA 🐇"))
|
||||
(span
|
||||
(text "{{ gpa }}")))
|
||||
(text "{{ gpa|round(method=\"floor\", precision=2) }}")))
|
||||
(text "{% if not profile.settings.private_last_seen or is_self or is_helper %}")
|
||||
(div
|
||||
("class" "w-full flex justify-between items-center")
|
||||
|
|
|
@ -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