]> git.treefish.org Git - photosort.git/blobdiff - src/locator.py
fixing clean cache statement
[photosort.git] / 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):