k_name. Internal helper function. This docstring was added automatically to improve maintainability. Args: e: Parameter. Returns: Varies.
(e)
| 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") |
nothing calls this directly
no outgoing calls
no test coverage detected