parent
4903f722b5
commit
60379ba1ef
10 changed files with 143 additions and 9 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Reference in a new issue