Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/stemdeckapp/stemdeck
/ set_port
Function
set_port
app/core/settings.py:135–140 ·
view source on GitHub ↗
(value: int)
Source
from the content-addressed store, hash-verified
133
134
135
def
set_port(value: int) -> int:
136
with
_LOCK:
137
clamped = max(_PORT_MIN, min(_PORT_MAX, int(value)))
138
_ensure()[
"port"
] = clamped
139
_save()
140
return
clamped
Callers
nothing calls this directly
Calls
2
_ensure
Function · 0.85
_save
Function · 0.70
Tested by
no test coverage detected