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

Function _write_local_https_cert

Scripts/ButSystem.py:17073–17113  ·  view source on GitHub ↗
(cert_path: str, key_path: str, san_hosts: list[str])

Source from the content-addressed store, hash-verified

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
17082def profiler_view(eid: int):
17083 """profiler_view.
17084
17085Route handler or application helper.
17086
17087This docstring was expanded to make future maintenance easier.
17088
17089Args:
17090 eid: Parameter.
17091
17092Returns:
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
17108Internal helper function.
17109
17110This docstring was added automatically to improve maintainability.
17111
17112Args:
17113 self: Parameter.
17114 d: Parameter.
17115
17116Returns:

Callers 1

Calls 2

addMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected