fix: use timedelta instead of string for interval query params
This commit is contained in:
@@ -209,10 +209,10 @@ ORDER BY md.published_at DESC
|
|||||||
# Horizon → interval mapping
|
# Horizon → interval mapping
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
|
|
||||||
_HORIZON_INTERVALS: dict[str, str] = {
|
_HORIZON_INTERVALS: dict[str, timedelta] = {
|
||||||
"1d": "1 day",
|
"1d": timedelta(days=1),
|
||||||
"7d": "7 days",
|
"7d": timedelta(days=7),
|
||||||
"30d": "30 days",
|
"30d": timedelta(days=30),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user