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
Showing only changes of commit 2572664e26 - Show all commits

View File

@@ -1,4 +1,5 @@
import datetime
import os
from flask import request
def parse_datetime_filter(value):
@@ -52,3 +53,9 @@ def get_request_filters() -> dict:
def split_limit(limit: int, n: int) -> list[int]:
base, remainder = divmod(limit, n)
return [base + (1 if i < remainder else 0) for i in range(n)]
def get_env(name: str) -> str:
value = os.getenv(name)
if not value:
raise RuntimeError(f"Missing required environment variable: {name}")
return value