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

Function update_profile

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

Update user profile

(user_id: str, profile_json: Dict)

Source from the content-addressed store, hash-verified

684 """, (
685 normalized_arxiv_id,
686 normalized_doi,
687 normalized_title,
688 json.dumps(authors or []),
689 _normalize_identifier(institution),
690 abstract or "",
691 _normalize_identifier(venue) or _normalize_identifier(source),
692 _normalize_identifier(publish_date),
693 json.dumps(embedding) if embedding else None,
694 _normalize_identifier(embedding_model) or "hash:hash:768",
695 # Format explicitly rather than passing a datetime: the implicit
696 # sqlite3 adapter is deprecated in 3.12+. isoformat(sep=" ")
697 # reproduces the exact string the adapter used, so existing rows and
698 # the string comparisons elsewhere in this module stay valid.
699 datetime.now().isoformat(sep=" ")
700 ))

Callers 15

mainFunction · 0.90
test_update_profileMethod · 0.90
daily_pushFunction · 0.85
cold_startFunction · 0.85
handle_reviewer_watchMethod · 0.85
handle_profile_updateMethod · 0.85
bind_chat_idFunction · 0.85

Calls 5

cursorMethod · 0.80
getMethod · 0.80
get_connectionFunction · 0.70
executeMethod · 0.45
closeMethod · 0.45

Tested by 1

test_update_profileMethod · 0.72