mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-03-30 13:53:24 -07:00
WebHost: turn Room.timeout from a database column into a flask app config field
This commit is contained in:
@@ -38,6 +38,5 @@ def room_info(room_id: UUID) -> Dict[str, Any]:
|
||||
"players": get_players(room.seed),
|
||||
"last_port": room.last_port,
|
||||
"last_activity": room.last_activity,
|
||||
"timeout": room.timeout,
|
||||
"downloads": downloads,
|
||||
}
|
||||
|
||||
@@ -16,7 +16,6 @@ def get_rooms():
|
||||
"creation_time": room.creation_time,
|
||||
"last_activity": room.last_activity,
|
||||
"last_port": room.last_port,
|
||||
"timeout": room.timeout,
|
||||
"tracker": to_url(room.tracker),
|
||||
})
|
||||
return jsonify(response)
|
||||
|
||||
Reference in New Issue
Block a user