diff --git a/search.go b/search.go index 4e1d6af..350589a 100644 --- a/search.go +++ b/search.go @@ -340,7 +340,7 @@ func handleAccessReview(rw http.ResponseWriter, req *http.Request) { return } - historyResult, err := db.Exec("INSERT INTO history(date, reviewId) VALUES(NOW(), ?)", request.Id) + historyResult, err := db.Exec("INSERT INTO history(date, reviewId) VALUES(DATETIME('now'), ?)", request.Id) if err != nil { http.Error(rw, err.Error(), http.StatusInternalServerError) return diff --git a/static/scripts/search.js b/static/scripts/search.js index e8c58d5..b80fd10 100644 --- a/static/scripts/search.js +++ b/static/scripts/search.js @@ -91,8 +91,6 @@ } $.post('/access', JSON.stringify({id: id, profile: getProfile()})); - - onSearch(); }; window.sortReviewsBy = function(sortKey) {