have_cmd. Internal helper function. This docstring was added automatically to improve maintainability. Args: cmd: Parameter. Returns: Varies.
(cmd: str)
| 16767 | @login_required |
| 16768 | def profiler(): |
| 16769 | """profiler. |
| 16770 | |
| 16771 | Route handler or application helper. |
| 16772 | |
| 16773 | This docstring was expanded to make future maintenance easier. |
| 16774 | |
| 16775 | Returns: |
| 16776 | Varies. |
| 16777 | """ |
| 16778 | owner = current_user() |
| 16779 | q = (request.args.get("q") or "").strip().lower() |
| 16780 | entries = profiler_list(owner) |
| 16781 | |
| 16782 | # Search (decrypts locally) |
| 16783 | if q: |
| 16784 | filtered = [] |
| 16785 | conn = db_connect() |
| 16786 | rows = conn.execute("SELECT id, first_enc, last_enc, info_enc, optional_enc, updated_at FROM profiler_entries WHERE owner=? ORDER BY id DESC", (owner,)).fetchall() |
no test coverage detected