BIG rename

This commit is contained in:
C committed 2025-10-26 15:49:11 -07:00
1 parent 77db374418
commit 0bc06358e8
19 files changed
+275 -307

No files matched your search

+5 -5
View File
@@ -6,21 +6,21 @@ import os
logger = logging.getLogger(__name__)
# Get the absolute path to edderkop.db in the project root
# Get the absolute path to studspider.db in the project root
DEFAULT_DB_PATH = os.path.join(
os.path.dirname(os.path.dirname(__file__)), "edderkop.db"
os.path.dirname(os.path.dirname(__file__)), "studspider.db"
)
if not os.path.exists(DEFAULT_DB_PATH):
raise FileNotFoundError(f"Database file not found at {DEFAULT_DB_PATH}")
print('Please run "src/scripts/EDDERKOP.SQL" to setup the database.')
print('Please run "src/scripts/studspider.SQL" to setup the database.')
os.exit(0)
class AsyncSchedulerDB:
"""
Asynchronous SQLite database manager for APScheduler.
Handles job storage, retrieval, and database operations using the main edderkop.db database.
Handles job storage, retrieval, and database operations using the main studspider.db database.
"""
def __init__(self, db_path: str = DEFAULT_DB_PATH):
@@ -29,7 +29,7 @@ class AsyncSchedulerDB:
Args:
db_path (str, optional): Path to the SQLite database file.
Defaults to edderkop.db in project root.
Defaults to studspider.db in project root.
"""
self.db_path = db_path
self._initialized = False