From 4b62fc0345287b1d2bf78891413d6df0815922f3 Mon Sep 17 00:00:00 2001 From: rlbr Date: Sat, 27 Oct 2018 16:43:10 -0500 Subject: [PATCH] using MAX instead of previous expreasion --- ext_open/searcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext_open/searcher.py b/ext_open/searcher.py index 7b3d53d..d49a61f 100644 --- a/ext_open/searcher.py +++ b/ext_open/searcher.py @@ -29,7 +29,7 @@ class Searcher: ) self.commit() def update(self,update_mtimes): - self.cur.execute('SELECT update_time FROM updates WHERE ext=? ORDER BY update_time DESC LIMIT 1;',[self.ext]) + self.cur.execute('SELECT MAX(update_time) FROM updates WHERE ext=?;',[self.ext]) last_update = self.cur.fetchone()[0] # input(str(last_update)) _time = int(time.time())