()
| 94 | return 0 |
| 95 | |
| 96 | def clear_db(): |
| 97 | check_db_path() |
| 98 | try: |
| 99 | conn = sqlite3.connect(DB_PATH) |
| 100 | cursor = conn.cursor() |
| 101 | cursor.execute('DELETE FROM crawled_data') |
| 102 | conn.commit() |
| 103 | conn.close() |
| 104 | except Exception as e: |
| 105 | print(f"Error clearing database: {e}") |
| 106 | |
| 107 | def flush_db(): |
| 108 | check_db_path() |
nothing calls this directly
no test coverage detected
searching dependent graphs…