MCPcopy Create free account
hub / github.com/stemdeckapp/stemdeck / set_max_duration_sec

Function set_max_duration_sec

app/core/settings.py:102–107  ·  view source on GitHub ↗
(value: int)

Source from the content-addressed store, hash-verified

100
101
102def set_max_duration_sec(value: int) -> int:
103 with _LOCK:
104 clamped = max(_DURATION_MIN, min(_DURATION_MAX, int(value)))
105 _ensure()["max_duration_sec"] = clamped
106 _save()
107 return clamped
108
109
110# ── video_max_height ──

Callers

nothing calls this directly

Calls 2

_ensureFunction · 0.85
_saveFunction · 0.70

Tested by

no test coverage detected