Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1c65f4f

Browse files
authored
Fix bad indentation for fapp and feh
1 parent 5157a57 commit 1c65f4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎snippets/controls.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"Flask App": {
1111
"prefix": "fapp",
12-
"body": "from flask import Flask, render_template\napp = Flask(__name__)\n\n\n@app.route('${1:/}')\ndef ${2:index}():\n return render_template('${3:index}.html')\n\nif __name__ == '__main__':\n app.run(host='${4:127.0.0.1}', port=${5:8000}, debug=${6:True})\n0ドル 0ドル"
12+
"body": "from flask import Flask, render_template\napp = Flask(__name__)\n\n\n@app.route('${1:/}')\ndef ${2:index}():\n return render_template('${3:index}.html')\n\nif __name__ == '__main__':\n app.run(host='${4:127.0.0.1}', port=${5:8000}, debug=${6:True})\n0ドル 0ドル"
1313
},
1414
"Flask route": {
1515
"prefix": "froute",
@@ -49,7 +49,7 @@
4949
},
5050
"Error handler": {
5151
"prefix": "feh",
52-
"body": "@app.errorhandler(${1:404})\ndef ${2:bar}(error):\n\t\treturn render_template('${3:error.html}'), ${1:404}\n0ドル"
52+
"body": "@app.errorhandler(${1:404})\ndef ${2:bar}(error):\n return render_template('${3:error.html}'), ${1:404}\n0ドル"
5353
},
5454
"Flask logging": {
5555
"prefix": "flog",

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /