From 480408b9cd9e3d4286b70eabb8612cd112013265 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Wed, 23 Sep 2015 10:42:26 +0900 Subject: [PATCH] Fixes --- search.go | 2 +- static/scripts/search.js | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) 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) {