fix: trim internal monitor source fields
Some checks failed
CD Pipeline / deploy (push) Has been cancelled

This commit is contained in:
ogt
2026-06-27 19:48:59 +08:00
parent 8861cbc3ac
commit bb87eaaf7f
4 changed files with 6 additions and 3 deletions

View File

@@ -60,7 +60,8 @@ def _sanitize_source_info(crawler_key, info):
for field in ('pause_reason', 'notes', 'activity_name'):
if field in sanitized:
sanitized[field] = _operator_text(sanitized.get(field))
sanitized.pop('function', None)
for internal_field in ('function', 'page_type', 'status', 'paused_date'):
sanitized.pop(internal_field, None)
return sanitized