This commit is contained in:
2026-02-06 10:12:24 +03:00
parent 801844807e
commit 834f21bb28
12 changed files with 1438 additions and 1181 deletions

View File

@@ -8,7 +8,8 @@ cursor.execute('''CREATE TABLE IF NOT EXISTS jokes (
id INTEGER PRIMARY KEY AUTOINCREMENT,
joke TEXT NOT NULL,
contributor TEXT NOT NULL,
published TEXT NOT NULL,
created_date TEXT NOT NULL,
approved BOOLEAN DEFAULT 0,
sentiment_score REAL DEFAULT 0.0,
sentiment_label TEXT DEFAULT '😐 Neutral'
)''')
@@ -23,5 +24,5 @@ cursor.execute('''CREATE TABLE IF NOT EXISTS user_sentiments (
)''')
conn.commit()
print("✅ Database and tables created successfully with AI sentiment columns and user sentiment tracking!")
print("✅ Database and tables created successfully with approval system and user sentiment tracking!")
conn.close()