mirror of
https://gitlab.com/jeancf/twoot.git
synced 2024-11-30 15:31:11 +00:00
No longer try creating unique index
This commit is contained in:
parent
65b880f5be
commit
7ffa81ffbd
4
twoot.py
4
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)]
|
||||
|
|
Loading…
Reference in New Issue
Block a user