mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
WebHost: retrieve PATCH_TARGET from config directly
This commit is contained in:
@@ -171,8 +171,6 @@ def hostRoom(room: UUID):
|
|||||||
|
|
||||||
with db_session:
|
with db_session:
|
||||||
room.last_activity = datetime.utcnow() # will trigger a spinup, if it's not already running
|
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)
|
return render_template("hostRoom.html", room=room)
|
||||||
|
|
||||||
|
@@ -20,7 +20,7 @@
|
|||||||
later,
|
later,
|
||||||
you can simply refresh this page and the server will be started again.<br>
|
you can simply refresh this page and the server will be started again.<br>
|
||||||
{% if room.last_port %}
|
{% 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 <a href="{{ url_for("tutorial_landing")}}">client</a>.<br>{% endif %}
|
in the <a href="{{ url_for("tutorial_landing")}}">client</a>.<br>{% endif %}
|
||||||
{{ macros.list_patches_room(room) }}
|
{{ macros.list_patches_room(room) }}
|
||||||
{% if room.owner == session["_id"] %}
|
{% if room.owner == session["_id"] %}
|
||||||
|
Reference in New Issue
Block a user