From dea8263e98afeeffca6456fa379fc289f4c76ca3 Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 11 Jan 2019 00:23:24 +0800 Subject: [PATCH] Update index.py --- plugins/simdht/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/simdht/index.py b/plugins/simdht/index.py index ac41424cc..38f30ae8d 100755 --- a/plugins/simdht/index.py +++ b/plugins/simdht/index.py @@ -199,7 +199,7 @@ def getMinData(conn, smin): pre = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(time.time() - smin - time_diff)) - sql = "select count(*) from search_hash where create_time > '" + pre + "'" + sql = "select count(id) from search_hash where create_time > '" + pre + "'" data = conn.query(sql) return data[0][0]