This commit is contained in:
Oleg Sheynin
2025-07-14 00:41:46 +00:00
parent b24285802a
commit 3b003c7811
7 changed files with 132 additions and 52 deletions
+6
View File
@@ -41,6 +41,12 @@ def create_result_database(db_path: str) -> None:
Create the SQLite database and required tables if they don't exist.
"""
try:
# Create directory if it doesn't exist
db_dir = os.path.dirname(db_path)
if db_dir and not os.path.exists(db_dir):
os.makedirs(db_dir, exist_ok=True)
print(f"Created directory: {db_dir}")
conn = sqlite3.connect(db_path)
cursor = conn.cursor()