MCPcopy Index your code
hub / github.com/TaskingAI/TaskingAI / prepare_db_dict

Function prepare_db_dict

backend/tkhelper/utils/utils.py:58–65  ·  view source on GitHub ↗
(data: Dict)

Source from the content-addressed store, hash-verified

56
57
58def prepare_db_dict(data: Dict):
59 upsert_dict = data.copy()
60 for key, value in data.items():
61 if isinstance(value, (dict, list)):
62 upsert_dict[key] = json.dumps(value)
63 if isinstance(value, Enum):
64 upsert_dict[key] = value.value
65 return upsert_dict
66
67
68async def path_params_required(request: Request) -> Dict[str, str]:

Callers 2

create_objectFunction · 0.90
update_objectFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected