diff --git a/auth_krb5.go b/auth_krb5.go index dda6374..4aaefec 100644 --- a/auth_krb5.go +++ b/auth_krb5.go @@ -83,7 +83,7 @@ func checkAuthKrb5(c *gin.Context) { return } - if usr, err := completeAuth(c, lf.Login, lf.Login+"@epita.fr", "", "", currentPromo, "", nil); err != nil { + if usr, err := completeAuth(c, lf.Login, lf.Login+"@epita.fr", "", "", 0, "", nil); err != nil { c.AbortWithStatusJSON(http.StatusUnauthorized, gin.H{"errmsg": err.Error()}) return } else { diff --git a/ui/src/routes/works/+page.svelte b/ui/src/routes/works/+page.svelte index c6564fa..722a343 100644 --- a/ui/src/routes/works/+page.svelte +++ b/ui/src/routes/works/+page.svelte @@ -120,7 +120,16 @@ {#await getScore(work)}
{:then score} - {score.score} + = 18} + class:bg-info={score.score < 18 && score.score >= 15} + class:bg-warning={score.score < 15 && score.score >= 9} + class:bg-danger={score.score < 9} + class:bg-dark={score.score == "N/A"} + > + {score.score} + {:catch error} {/await}