MCPcopy
hub / github.com/psycopg/psycopg / get_user_data

Function get_user_data

tools/update_backer.py:26–41  ·  view source on GitHub ↗

Get the data to save from the request data

(data)

Source from the content-addressed store, hash-verified

24
25
26def get_user_data(data):
27 """
28 Get the data to save from the request data
29 """
30 out = {
31 "username": data["login"],
32 "avatar": data["avatar_url"],
33 "name": data["name"],
34 }
35 if data["blog"]:
36 if not (website := data["blog"]).startswith("http"):
37 website = "http://" + website
38
39 out["website"] = website
40
41 return out
42
43
44def add_entry(opt, filedata, username):

Callers 2

add_entryFunction · 0.85
update_entryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected