From 7ffa81ffbda82426926415086a1a0f50deb64bb1 Mon Sep 17 00:00:00 2001 From: jeancf Date: Mon, 22 Aug 2022 14:50:03 +0200 Subject: [PATCH] No longer try creating unique index --- twoot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twoot.py b/twoot.py index 5bc4329..c2b33b0 100755 --- a/twoot.py +++ b/twoot.py @@ -295,8 +295,8 @@ def main(argv): db = sql.cursor() db.execute('''CREATE TABLE IF NOT EXISTS toots (twitter_account TEXT, mastodon_instance TEXT, mastodon_account TEXT, tweet_id TEXT, toot_id TEXT)''') - #db.execute('''CREATE UNIQUE INDEX IF NOT EXITS master ON toots (twitter_account, - # mastodon_instance, mastodon_account, tweet_id)''') + db.execute('''CREATE INDEX IF NOT EXISTS main_index ON toots (twitter_account, + mastodon_instance, mastodon_account, tweet_id)''') # Select random nitter instance to fetch updates from nitter_url = NITTER_URLS[random.randint(0, len(NITTER_URLS)-1)]