Skip to content

Commit

Permalink
Merge pull request #185 from DHBW-SE-2023/dev
Browse files Browse the repository at this point in the history
Upgrades
  • Loading branch information
MaxAlberti authored Mar 31, 2024
2 parents d38983e + 00fccf4 commit 844318d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions Install.bat
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
docker pull ghcr.io/dhbw-se-2023/yaac:master
PAUSE
2 changes: 1 addition & 1 deletion YAAC.bat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
start /Min cmd /C wsl -- docker run -it --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v $HOME:/host -v /mnt/c:/winc ghcr.io/dhbw-se-2023/yaac:master
start /Min cmd /C wsl -- docker run -it --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v $HOME:/root/host -v /mnt/c:/root/winc -v yaacvolume:/go/YAAC/data ghcr.io/dhbw-se-2023/yaac:master
9 changes: 7 additions & 2 deletions internal/frontend/main/pages/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,13 @@ func InsertList(w fyne.Window, img []byte, courseName string, optional ...string
_, err = myMVVM.UploadImage(img, &course)
if err != nil {
loading.Hide()
dialog.ShowError(fmt.Errorf("fehler bei der automatischen Anwesenheitserkennung.\n%w", err), w)
return
if err.Error() == "record not found" {
dialog.ShowError(errors.New("fehler angegebener kurs entspriht nicht kursname der liste"), w)
return
} else {
dialog.ShowError(fmt.Errorf("fehler bei der automatischen Anwesenheitserkennung.\n%w", err), w)
return
}
}

loading.Hide()
Expand Down

0 comments on commit 844318d

Please sign in to comment.