No longer try creating unique index

This commit is contained in:
jeancf 2022-08-22 14:50:03 +02:00
parent 65b880f5be
commit 7ffa81ffbd

View File

@ -295,8 +295,8 @@ def main(argv):
db = sql.cursor() db = sql.cursor()
db.execute('''CREATE TABLE IF NOT EXISTS toots (twitter_account TEXT, mastodon_instance TEXT, db.execute('''CREATE TABLE IF NOT EXISTS toots (twitter_account TEXT, mastodon_instance TEXT,
mastodon_account TEXT, tweet_id TEXT, toot_id TEXT)''') mastodon_account TEXT, tweet_id TEXT, toot_id TEXT)''')
#db.execute('''CREATE UNIQUE INDEX IF NOT EXITS master ON toots (twitter_account, db.execute('''CREATE INDEX IF NOT EXISTS main_index ON toots (twitter_account,
# mastodon_instance, mastodon_account, tweet_id)''') mastodon_instance, mastodon_account, tweet_id)''')
# Select random nitter instance to fetch updates from # Select random nitter instance to fetch updates from
nitter_url = NITTER_URLS[random.randint(0, len(NITTER_URLS)-1)] nitter_url = NITTER_URLS[random.randint(0, len(NITTER_URLS)-1)]