Download development_logs/legacy_src/reset_database.py from Kirtan001/test: direct link, hf CLI and curl.
- Browser
- Download file 266 Bytes
-
https://huggingface.co/spaces/Kirtan001/test/resolve/main/development_logs/legacy_src/reset_database.py
- Command line
-
hf download hf://spaces/Kirtan001/test/development_logs/legacy_src/reset_database.py
-
curl -L -o reset_database.py https://huggingface.co/spaces/Kirtan001/test/resolve/main/development_logs/legacy_src/reset_database.py
266 Bytes
| import sqlite3 | |
| conn = sqlite3.connect("data/satellites.db") | |
| cursor = conn.cursor() | |
| cursor.execute("DELETE FROM countries") | |
| cursor.execute("DELETE FROM categories") | |
| cursor.execute("DELETE FROM satellites") | |
| conn.commit() | |
| conn.close() | |
| print("Database cleared ✅") | |