From 5d29184801fd5f5d687e83b78c443540231bd938 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Tue, 16 Nov 2021 21:38:34 +0100 Subject: [PATCH] WebHost: retrieve PATCH_TARGET from config directly --- WebHostLib/__init__.py | 2 -- WebHostLib/templates/hostRoom.html | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/WebHostLib/__init__.py b/WebHostLib/__init__.py index 13269dc0b3..cfce8b057f 100644 --- a/WebHostLib/__init__.py +++ b/WebHostLib/__init__.py @@ -171,8 +171,6 @@ def hostRoom(room: UUID): with db_session: room.last_activity = datetime.utcnow() # will trigger a spinup, if it's not already running - - room.server = app.config['PATCH_TARGET'] return render_template("hostRoom.html", room=room) diff --git a/WebHostLib/templates/hostRoom.html b/WebHostLib/templates/hostRoom.html index 9133cb7518..9e392af96c 100644 --- a/WebHostLib/templates/hostRoom.html +++ b/WebHostLib/templates/hostRoom.html @@ -20,7 +20,7 @@ later, you can simply refresh this page and the server will be started again.
{% if room.last_port %} - You can connect to this room by using '/connect {{ room.server }}:{{ room.last_port }}' + You can connect to this room by using '/connect {{ config['PATCH_TARGET'] }}:{{ room.last_port }}' in the client.
{% endif %} {{ macros.list_patches_room(room) }} {% if room.owner == session["_id"] %}