Drop redundant "[note]" tag from fundraising-grid note line (v0.1.0:85)

The grid note line was "YYYY-MM-DD [type] Contact: summary"; for the default
"note" type the tag is noise. Omit it for "note"; keep it for informative
types (call, meeting, …). Shared by the Matrix intake bot and grid-UI logging.
Built + installed to the box (installed-version 0.1.0:85, clean 84->85
migration). No schema change.
This commit is contained in:
Keysat
2026-06-17 17:30:40 -05:00
parent aefb2aa119
commit fa6c9da0e6
4 changed files with 23 additions and 5 deletions
+2 -1
View File
@@ -2916,7 +2916,8 @@ class CRMHandler(BaseHTTPRequestHandler):
if append_note:
contact_name = str(contact_in.get('name') or '').strip()
summary = comm_subject or comm_body[:120]
note_line = f"{iso_day} [{comm_type}] {contact_name}: {summary}".strip()
type_tag = "" if comm_type == "note" else f"[{comm_type}] "
note_line = f"{iso_day} {type_tag}{contact_name}: {summary}".strip()
existing_notes = str(target_row.get('notes') or '')
target_row['notes'] = f"{existing_notes}\n{note_line}".strip() if existing_notes.strip() else note_line
target_row['notes_last_modified'] = iso_day