From: Alexander Schmidt Date: Mon, 26 Oct 2020 22:39:18 +0000 (+0100) Subject: fixing db creation X-Git-Url: http://git.treefish.org/~alex/photosort.git/commitdiff_plain/797a8228d05a1080d6928721d96a53f8fc91ec06 fixing db creation --- diff --git a/src/locator.py b/src/locator.py index 7ec362f..7a57e09 100644 --- a/src/locator.py +++ b/src/locator.py @@ -67,8 +67,8 @@ class Locator: def _create_db(self): logging.info("Creating locator database for %s...", self._base_dir) c = self._conn.cursor() - c.execute('''CREATE TABLE cache - (name TEXT, size INTEGER, meta_time INTEGER, file_dir TEXT, - access_time INTEGER), - PRIMARY KEY (name, size, meta_time)''') + c.execute('''CREATE TABLE cache( + name TEXT, size INTEGER, meta_time INTEGER, file_dir TEXT, + access_time INTEGER, + PRIMARY KEY (name, size, meta_time))''') self._conn.commit()