Skip to content

Instantly share code, notes, and snippets.

@Yuuzi261
Last active September 15, 2024 23:24
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