Open keegaroo65 opened 1 year ago
@keegaroo65 Not sure why the error is happening, but it looks like it's trying to create the DB a second time. Updating the SQL to CREATE TABLE IF NOT EXISTS
instead of CREATE TABLE
would fix this. If you fix this, it'd be great if you could open a PR 🙇
This error is spammed:
(sqlite3.OperationalError) table others already exists [SQL: CREATE TABLE others ( id INTEGER NOT NULL, post_id INTEGER NOT NULL, text VARCHAR, price INTEGER, paid INTEGER, archived BOOLEAN, created_at TIMESTAMP, PRIMARY KEY (id), UNIQUE (post_id) )
] (Background on this error at: https://sqlalche.me/e/20/e3q8)