MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / online_sorted_users

Function online_sorted_users

Scripts/ButSystem.py:1288–1304  ·  view source on GitHub ↗

online_sorted_users. Internal helper function. This docstring was added automatically to improve maintainability. Args: exclude: Parameter. scope: Parameter. Returns: Varies.

(exclude: Optional[str]=None, scope: Optional[str]=None)

Source from the content-addressed store, hash-verified

1286 This keeps 'online' accurate per generated link (local vs cloudflared vs tor),
1287 so users are only shown online if they're actually active on the same link.
1288 """
1289 try:
1290 h = request.headers.get("X-Forwarded-Host") or request.host or "unknown"
1291 except Exception:
1292 h = "unknown"
1293 return (h or "unknown").lower()
1294
1295def mark_online(username: str, scope: str):
1296 """mark_online.
1297
1298Route handler or application helper.
1299
1300This docstring was expanded to make future maintenance easier.
1301
1302Args:
1303 username: Parameter.
1304 scope: Parameter.
1305
1306Returns:
1307 Varies.

Callers

nothing calls this directly

Calls 1

user_cardsFunction · 0.70

Tested by

no test coverage detected