Move settings hints into rules; add OO amplitude filter toggle default off.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -322,6 +322,19 @@ async def fleet_status(_tok: Annotated[str, Depends(require_fleet_token)]) -> di
|
||||
"oo_amplitude_hours": _pick(
|
||||
"oo_amplitude_hours", float(settings.oo_amplitude_hours)
|
||||
),
|
||||
"oo_amplitude_filter_enabled": (
|
||||
str(
|
||||
st.get("oo_amplitude_filter_enabled")
|
||||
if "oo_amplitude_filter_enabled" in st
|
||||
else db.get_setting(
|
||||
"oo_amplitude_filter_enabled",
|
||||
str(settings.oo_amplitude_filter_enabled),
|
||||
)
|
||||
)
|
||||
.strip()
|
||||
.lower()
|
||||
in ("1", "true", "yes", "on")
|
||||
),
|
||||
"oo_min_option_hours": _pick(
|
||||
"oo_min_option_hours", float(settings.oo_min_option_hours)
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user