fix: Python template def main() without ctx arg
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user