This commit is contained in:
HuangHai
2026-01-21 07:30:08 +08:00
parent f56a2744b9
commit 8ad565cc65
3 changed files with 0 additions and 25 deletions

BIN
data.db

Binary file not shown.

View File

@@ -1,23 +0,0 @@
import sys
import os
sys.path.append(os.getcwd())
from Controller.DouYinController import get_db_connection
def check_db():
try:
conn = get_db_connection()
cursor = conn.cursor()
cursor.execute("SELECT count(*) as cnt FROM t_douyin_record")
count = cursor.fetchone()
print(f"Total records: {count}")
cursor.execute("SELECT * FROM t_douyin_record ORDER BY create_time DESC LIMIT 5")
records = cursor.fetchall()
print(f"Recent records: {records}")
conn.close()
except Exception as e:
print(f"Error: {e}")
if __name__ == "__main__":
check_db()

File diff suppressed because one or more lines are too long