Hosna QasmeiH
Convex Community2y ago
11 replies
Hosna Qasmei

How do you call a function from a sub file in python

I'm trying to query data from a function.

here is my python query
projectsPerUser = client.query("plans.queries:getAllUserPlansWithUserId",{"userId": "user_2gQVIas5FGv9KaLZYCBrVWuXq7Z"})


Attached a photo of my folder structure and get this error. Don't think my above code is right, or is this possible to do in python?
Screenshot_2024-06-13_at_8.53.03_PM.png
Screenshot_2024-06-13_at_8.56.28_PM.png
Was this page helpful?