From e5f91f6c0b0811bfa4cee02acdcc1cca3945c8e8 Mon Sep 17 00:00:00 2001 From: Lynne Date: Fri, 16 Aug 2019 02:02:06 +1000 Subject: [PATCH] fixed wrong db name --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index c19f122..62ed6aa 100755 --- a/main.py +++ b/main.py @@ -82,7 +82,7 @@ following = client.account_following(me.id) db = sqlite3.connect("toots.db") db.text_factory=str c = db.cursor() -c.execute("CREATE TABLE IF NOT EXISTS `toots_temp` (sortid INTEGER UNIQUE PRIMARY KEY AUTOINCREMENT, id VARCHAR NOT NULL, cw INT NOT NULL DEFAULT 0, userid VARCHAR NOT NULL, uri VARCHAR NOT NULL, content VARCHAR NOT NULL)") +c.execute("CREATE TABLE IF NOT EXISTS `toots` (sortid INTEGER UNIQUE PRIMARY KEY AUTOINCREMENT, id VARCHAR NOT NULL, cw INT NOT NULL DEFAULT 0, userid VARCHAR NOT NULL, uri VARCHAR NOT NULL, content VARCHAR NOT NULL)") tableinfo = c.execute("PRAGMA table_info(`toots`)").fetchall() found = False