Use title for metadata chapters

This commit is contained in:
Nicolas Mowen 2026-05-10 09:44:42 -06:00
parent da1671b6eb
commit 4006975227

View File

@ -380,7 +380,12 @@ class RecordingExporter(threading.Thread):
if label and label not in labels: if label and label not in labels:
labels.append(label) labels.append(label)
metadata = data.get("metadata") or {}
title = metadata.get("title")
if not title:
title = str(review.severity).capitalize() title = str(review.severity).capitalize()
if labels: if labels:
title = f"{title}: {', '.join(labels)}" title = f"{title}: {', '.join(labels)}"