X-Git-Url: http://git.treefish.org/~alex/photosort.git/blobdiff_plain/418345c1f81d103e5ec091be0e211d8d4978c3c0..HEAD:/src/registry.py?ds=inline diff --git a/src/registry.py b/src/registry.py index 4eff031..a2bad86 100644 --- a/src/registry.py +++ b/src/registry.py @@ -18,7 +18,7 @@ class Registry: if not self._conn: return False c = self._conn.cursor() c.execute("SELECT COUNT(*) FROM cache WHERE name=?", (name,)) - return c.fetchone() != None + return c.fetchone()[0] == 1 def clean(self): if not self._conn: return