From 6f0a389050f602e2b2a1a9cdc8598b8bda2fac9b Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Fri, 17 Sep 2021 13:53:11 -0400 Subject: [PATCH] create table posts if it does not exist --- fetch_posts.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fetch_posts.py b/fetch_posts.py index ededd86..348c9bc 100755 --- a/fetch_posts.py +++ b/fetch_posts.py @@ -51,6 +51,7 @@ class PostFetcher: self._rl_handler = HandleRateLimits(self._http) self._db = await stack.enter_async_context(aiosqlite.connect(self.config['db_path'])) await self._maybe_run_migrations() + await self._db.commit() self._db.row_factory = aiosqlite.Row self._ctx_stack = stack return self