MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _normalize_identifier

Function _normalize_identifier

skills/storage-helper/scripts/db_ops.py:29–34  ·  view source on GitHub ↗

Normalize identifiers so empty strings do not poison UNIQUE columns.

(value: Optional[str])

Source from the content-addressed store, hash-verified

27
28
29def _normalize_identifier(value: Optional[str]) -> Optional[str]:
30 """Normalize identifiers so empty strings do not poison UNIQUE columns."""
31 if value is None:
32 return None
33 normalized = str(value).strip()
34 return normalized or None
35
36
37def _deserialize_json_list(value: Any) -> List[Any]:

Callers 13

create_chat_sessionFunction · 0.85
save_chat_messageFunction · 0.85
list_chat_sessionsFunction · 0.85
get_chat_sessionFunction · 0.85
delete_chat_sessionFunction · 0.85
clear_chat_sessionsFunction · 0.85
save_paperFunction · 0.85
get_paper_by_arxiv_idFunction · 0.85
get_doc_engagement_statsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected