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

Function k_name

Scripts/ButSystem.py:11518–11531  ·  view source on GitHub ↗

k_name. Internal helper function. This docstring was added automatically to improve maintainability. Args: e: Parameter. Returns: Varies.

(e)

Source from the content-addressed store, hash-verified

11516
11517 # GET: show latest status for this device fp (if any)
11518 try:
11519 if fp:
11520 conn = db_connect()
11521 row = conn.execute(
11522 "SELECT status FROM device_access_requests WHERE device_fp=? ORDER BY id DESC LIMIT 1",
11523 (fp,)
11524 ).fetchone()
11525 conn.close()
11526 if row:
11527 status = row["status"]
11528 except Exception:
11529 status = None
11530
11531 resp = render_template("device_access.html", title=_("Device auto‑login"), admins=admins, status=status)
11532 return resp
11533
11534@app.route("/device_access/poll")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected