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 # defensively so this module still works standalone (tests and scripts load
28 # it directly by file path, without paperflow on sys.path).
29 from paperflow.runtime import db_path as _resolve_db_path
30
31 _DEFAULT_DB_PATH = _resolve_db_path()
32except Exception:
33 pass
34
35# PAPERFLOW_DB_PATH lets deployments relocate runtime state (containers, shared
36# volumes, multi-profile setups) without editing this module. Tests reassign the
37# module-level DB_PATH directly, so get_connection() resolves it per call.

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