Skip to content

Commit a802e3a

Browse files
committed
-
1 parent 65d482a commit a802e3a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ def get_locale():
6767

6868
@app.route("/")
6969
def handle_home():
70-
stream_port = cam.stream_port if cam else None
71-
return render_template('main.html', host=request.host[:request.host.find(':')], stream_port=stream_port, locale = get_locale(), config=app.bot_config, program_level=app.bot_config.get("prog_level", "std"))
70+
return render_template('main.html', host=request.host[:request.host.find(':')], stream_port=cam.stream_port, locale = get_locale(), config=app.bot_config, program_level=app.bot_config.get("prog_level", "std"))
7271

7372
@app.route("/config", methods=["POST"])
7473
def handle_config():

0 commit comments

Comments
 (0)