create table posts if it does not exist

This commit is contained in:
Joel Beckmeyer 2021-09-17 13:53:11 -04:00
parent da961a0e35
commit 6f0a389050

View File

@ -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