added tests for db and user
Some checks reported errors
arbeitszeitmessung/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
2025-08-13 15:50:11 +02:00
parent ba885357c2
commit b614049d03
14 changed files with 126 additions and 36 deletions

View File

@@ -33,7 +33,7 @@ func submitReport(w http.ResponseWriter, r *http.Request) {
userPN, _ := strconv.Atoi(r.FormValue("user"))
_weekTs := r.FormValue("week")
weekTs, err := time.Parse(time.DateOnly, _weekTs)
user, err := (*models.User).GetByPersonalNummer(nil, userPN)
user, err := models.GetUserByPersonalNr(userPN)
workWeek := (*models.WorkWeek).GetWeek(nil, user, weekTs, false)
if err != nil {