Automatic Scraping of dataset options #9

Merged
dylan merged 36 commits from feat/automatic-scraping-datasets into main 2026-03-14 21:58:49 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 15704a0782 - Show all commits

View File

@@ -114,7 +114,7 @@ class DatasetManager:
self.db.execute_batch(query, values)
def set_dataset_status(self, dataset_id: int, status: str, status_message: str | None = None):
if status not in ["processing", "complete", "error"]:
if status not in ["fetching", "processing", "complete", "error"]:
raise ValueError("Invalid status")
query = """

View File

@@ -23,7 +23,7 @@ CREATE TABLE datasets (
-- Enforce valid states
CONSTRAINT datasets_status_check
CHECK (status IN ('processing', 'complete', 'error'))
CHECK (status IN ('fetching', 'processing', 'complete', 'error'))
);
CREATE TABLE events (