1

Updating history clear order

This commit is contained in:
Alex Yatskov 2015-03-27 13:13:37 +09:00
parent f9a83d5c65
commit fb0e5ce4bc

View File

@ -243,11 +243,11 @@ func accessReview(rw http.ResponseWriter, req *http.Request) {
}
func clearHistory(rw http.ResponseWriter, req *http.Request) {
if _, err := db.Exec("DELETE FROM history"); err != nil {
if _, err := db.Exec("DELETE FROM historyGroups"); err != nil {
log.Fatal(err)
}
if _, err := db.Exec("DELETE FROM historyGroups"); err != nil {
if _, err := db.Exec("DELETE FROM history"); err != nil {
log.Fatal(err)
}