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

Function get_profile

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

Get user profile by user_id

(user_id: str)

Source from the content-addressed store, hash-verified

653
654
655def get_profile(user_id: str) -> Optional[Dict]:
656 """Get user profile by user_id"""
657 conn = get_connection()
658 cursor = conn.cursor()
659 cursor.execute("""
660 SELECT profile_json FROM profiles WHERE user_id = ?
661 """, (user_id,))
662 row = cursor.fetchone()
663 conn.close()
664 if row:
665 return json.loads(row["profile_json"])
666 return None
667
668
669def get_paper_by_arxiv_id(arxiv_id: str) -> Optional[Dict]:

Callers 8

mainFunction · 0.90
mainFunction · 0.90
test_get_profileMethod · 0.90
test_update_profileMethod · 0.90
get_direction_changesFunction · 0.70
db_ops.pyFile · 0.70
mainFunction · 0.50

Calls 4

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

Tested by 3

test_get_profileMethod · 0.72
test_update_profileMethod · 0.72