botany/clear_weekly_users.py

12 lines
296 B
Python
Raw Normal View History

import os
import sqlite3
game_dir = os.path.dirname(os.path.realpath(__file__))
garden_db_path = os.path.join(game_dir, 'sqlite/garden_db.sqlite')
conn = sqlite3.connect(garden_db_path)
c = conn.cursor()
c.execute("DELETE FROM visitors")
2019-10-30 17:26:49 +00:00
print("Cleared weekly users")
conn.commit()
conn.close()