fix bug in detection of database

This commit is contained in:
Mathieu Broillet 2023-11-06 20:35:00 +01:00
parent d580673ea3
commit cb24495c95
Signed by: mathieu
GPG Key ID: C0E9E0E95AF03319

View File

@ -10,7 +10,7 @@ def create_database():
"""Creates the database."""
# Check if the database already exists
if os.path.exists(project_path / "resources" / "jarvis-commands-memory.sqlite"):
if os.path.exists(project_path / "resources" / "db-jarvis-commands-memory.sqlite"):
logging.debug("Database already exists, skipping creation")
return