Skip to content

Instantly share code, notes, and snippets.

@Yuuzi261
Last active September 15, 2024 23:24
Show Gist options
  • Save Yuuzi261/978cfca7589719112b504e759f5c48b6 to your computer and use it in GitHub Desktop.
Save Yuuzi261/978cfca7589719112b504e759f5c48b6 to your computer and use it in GitHub Desktop.
This is the update script for Tweetcord from version 0.3.3 to 0.3.4. Please make sure to read the Tweetcord upgrade guide before using it.
from dotenv import load_dotenv
import os
import sqlite3
load_dotenv()
conn = sqlite3.connect(f"{os.getenv('DATA_PATH')}tracked_accounts.db")
cursor = conn.cursor()
cursor.execute('ALTER TABLE notification ADD enabled INTEGER DEFAULT 1')
conn.commit()
conn.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment