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:
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user