Skip to content

Commit 14246db

Browse files
committed
style(pfd): run black
1 parent 59edac0 commit 14246db

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/app.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1-
from flask import Flask,render_template
1+
from flask import Flask, render_template
22
import socket
33

44
app = Flask(__name__)
55

6+
67
@app.route("/")
78
def index():
89
try:
910
host_name = socket.gethostname()
1011
host_ip = socket.gethostbyname(host_name)
11-
return render_template('index.html', hostname=host_name, ip=host_ip)
12+
return render_template("index.html", hostname=host_name, ip=host_ip)
1213
except:
13-
return render_template('error.html')
14+
return render_template("error.html")
1415

1516

1617
if __name__ == "__main__":
17-
app.run(host='0.0.0.0', port=8080)
18+
app.run(host="0.0.0.0", port=8080)

0 commit comments

Comments
 (0)