MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / badge

Function badge

compliance_report.py:361–363  ·  view source on GitHub ↗
(status)

Source from the content-addressed store, hash-verified

359 return html.escape(str(value if value is not None else ""))
360
361 def badge(status):
362 return (f'<span style="color:{_STATUS_COLORS.get(status, "#9ca3af")};font-weight:600">'
363 f'{e(_STATUS_LABELS.get(status, status))}</span>')
364
365 generated_at = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
366

Callers 1

render_compliance_htmlFunction · 0.85

Calls 2

eFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected