MCPcopy Create free account
hub / github.com/ImGoodBai/MapGoGoGo / list_challenges

Function list_challenges

backend/app/main.py:264–273  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

262
263@app.get("/api/challenges")
264def list_challenges() -> dict:
265 with connect() as conn:
266 rows = conn.execute(
267 """
268 SELECT * FROM challenges
269 ORDER BY created_at DESC
270 LIMIT 50
271 """
272 ).fetchall()
273 return {"challenges": [public_challenge(conn, row) for row in rows]}
274
275
276@app.post("/api/challenges")

Callers

nothing calls this directly

Calls 2

connectFunction · 0.85
public_challengeFunction · 0.85

Tested by

no test coverage detected