fix: Python template def main() without ctx arg

This commit is contained in:
Naeel
2026-04-27 18:08:00 +03:00
parent fcc3449469
commit 9168fc2d9e
+2 -2
View File
@@ -501,7 +501,7 @@
</div> </div>
<div> <div>
<label>Код</label> <label>Код</label>
<textarea id="c-code">def main(ctx): <textarea id="c-code">def main():
return {"ok": True, "msg": "hello from fission console"} return {"ok": True, "msg": "hello from fission console"}
</textarea> </textarea>
<div style="margin-top:6px; display:flex; gap:6px; flex-wrap:wrap;"> <div style="margin-top:6px; display:flex; gap:6px; flex-wrap:wrap;">
@@ -811,7 +811,7 @@
const LANG_TEMPLATES = { const LANG_TEMPLATES = {
python: { python: {
entrypoint: 'main.main', entrypoint: 'main.main',
code: 'def main():\n return "hello from fission"' code: 'def main():\n return {"ok": True}'
}, },
nodejs: { nodejs: {
entrypoint: 'main', entrypoint: 'main',