MCPcopy Index your code
hub / github.com/ronreiter/interactive-tutorials / get_tutorial

Function get_tutorial

main.py:385–394  ·  view source on GitHub ↗
(tutorial_id, language="en")

Source from the content-addressed store, hash-verified

383
384
385def get_tutorial(tutorial_id, language="en"):
386 td = get_tutorial_data(tutorial_id, language)
387
388 if not td:
389 return {
390 "page_title": html.escape(tutorial_id),
391 "text": "Page not found."
392 }
393 else:
394 return td
395
396
397def error404():

Callers 1

indexFunction · 0.85

Calls 2

get_tutorial_dataFunction · 0.85
escapeMethod · 0.45

Tested by

no test coverage detected