From 9d839a1a637636bc7ed1058b8c68e185a6e6c0f1 Mon Sep 17 00:00:00 2001 From: trisua Date: Mon, 9 Jun 2025 21:36:27 -0400 Subject: [PATCH] fix: gpa panic --- crates/app/src/public/html/profile/base.lisp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/app/src/public/html/profile/base.lisp b/crates/app/src/public/html/profile/base.lisp index f02c553..5dd0c7e 100644 --- a/crates/app/src/public/html/profile/base.lisp +++ b/crates/app/src/public/html/profile/base.lisp @@ -160,6 +160,7 @@ (text "Posts")) (span (text "{{ profile.post_count }}"))) + (text "{% if gpa and gpa > 0 -%}") (div ("class" "w-full flex justify-between items-center") ("title" "great post average (limited time)") @@ -168,6 +169,7 @@ (text "GPA 🐇")) (span (text "{{ gpa|round(method=\"floor\", precision=2) }}"))) + (text "{%- endif %}") (text "{% if not profile.settings.private_last_seen or is_self or is_helper %}") (div ("class" "w-full flex justify-between items-center")