commit
This commit is contained in:
10
test_mysql.py
Normal file
10
test_mysql.py
Normal file
@@ -0,0 +1,10 @@
|
||||
"""测试MySQL数据库"""
|
||||
from data_manager import DataManager
|
||||
|
||||
print("测试MySQL数据库连接...")
|
||||
dm = DataManager()
|
||||
stats = dm.get_statistics()
|
||||
print("✓ MySQL数据库运行正常")
|
||||
print(f"总站点: {stats.get('total_sites')}")
|
||||
print(f"活跃站点: {stats.get('active_sites')}")
|
||||
print(f"总点击: {stats.get('total_clicks')}")
|
||||
Reference in New Issue
Block a user