]> git.treefish.org Git - photosort.git/commitdiff
fixing clean cache statement
authorAlexander Schmidt <alex@treefish.org>
Mon, 26 Oct 2020 22:48:02 +0000 (23:48 +0100)
committerAlexander Schmidt <alex@treefish.org>
Mon, 26 Oct 2020 22:48:02 +0000 (23:48 +0100)
src/locator.py

index c19bd6c926d925689f0c5ba447d61ab3cb29f526..3b866f8550e6d65f39b15aeb5c8b234dedcad42d 100644 (file)
@@ -62,7 +62,7 @@ class Locator:
 
     def _clean_cache(self):
         c = self._conn.cursor()
-        c.execute("DELETE FROM cache WHERE access_time<?", (int(time.time()) - 604800))
+        c.execute("DELETE FROM cache WHERE access_time<?", (int(time.time()) - 604800,))
         self._conn.commit()
 
     def _create_db(self):