(cert_path: str, key_path: str, san_hosts: list[str])
| 17071 | if f and f.filename: |
| 17072 | try: |
| 17073 | profiler_store_attachment(eid, f) |
| 17074 | except Exception as e: |
| 17075 | log.exception("Profiler attachment failed: %s", e) |
| 17076 | |
| 17077 | flash("Profiler entry saved.") |
| 17078 | return redirect(url_for("profiler")) |
| 17079 | |
| 17080 | @app.route("/profiler/<int:eid>") |
| 17081 | @login_required |
| 17082 | def profiler_view(eid: int): |
| 17083 | """profiler_view. |
| 17084 | |
| 17085 | Route handler or application helper. |
| 17086 | |
| 17087 | This docstring was expanded to make future maintenance easier. |
| 17088 | |
| 17089 | Args: |
| 17090 | eid: Parameter. |
| 17091 | |
| 17092 | Returns: |
| 17093 | Varies. |
| 17094 | """ |
| 17095 | owner = current_user() |
| 17096 | try: |
| 17097 | entry, atts = profiler_get(owner, eid) |
| 17098 | except KeyError: |
| 17099 | abort(404) |
| 17100 | if entry.get("bounty_price") is not None and not entry.get("bounty_price_display"): |
| 17101 | entry["bounty_price_display"] = _fmt_bounty_price(entry.get("bounty_price")) |
| 17102 | if entry.get("bounty_price") is not None and not entry.get("bounty_price_display"): |
| 17103 | entry["bounty_price_display"] = _fmt_bounty_price(entry.get("bounty_price")) |
| 17104 | class Obj: |
| 17105 | def __init__(self, d): |
| 17106 | """__init__. |
| 17107 | |
| 17108 | Internal helper function. |
| 17109 | |
| 17110 | This docstring was added automatically to improve maintainability. |
| 17111 | |
| 17112 | Args: |
| 17113 | self: Parameter. |
| 17114 | d: Parameter. |
| 17115 | |
| 17116 | Returns: |
no test coverage detected