Be able to list users submisions

- Closes: #45
This commit is contained in:
Las Zenow 2019-03-05 19:54:21 +00:00
parent 4903f722b5
commit 60379ba1ef
10 changed files with 143 additions and 9 deletions

View file

@ -102,11 +102,11 @@ func uploadPostHandler(h handler) {
log.Error("Can not open uploaded file ", f.Filename, ": ", err)
h.sess.Notify("Upload problem!", "There was a problem with book "+f.Filename, "error")
submission.Status = "It was not possible to read the book"
h.db.AddSubmission(submission)
h.db.AddSubmission(submission, h.sess.User)
continue
}
id, err := h.db.AddSubmission(submission)
id, err := h.db.AddSubmission(submission, h.sess.User)
if err != nil {
log.Error("Can add submission to db for ", f.Filename, ": ", err)
}