New combobox placement for room editor.
This commit is contained in:
parent
1ccdf89739
commit
5a6125167c
7 changed files with 104 additions and 28 deletions
|
|
@ -32,13 +32,13 @@ def settings():
|
|||
submitted_rooms = []
|
||||
for room in state.get("rooms", []):
|
||||
room = dict(room) # shallow copy
|
||||
sid = room.get("section_id")
|
||||
sid = room.get("area_id")
|
||||
fid = room.get("function_id")
|
||||
|
||||
if sid is not None:
|
||||
sid_key = str(sid)
|
||||
if sid_key in section_map:
|
||||
room["section_id"] = section_map[sid_key]
|
||||
room["area_id"] = section_map[sid_key]
|
||||
|
||||
if fid is not None:
|
||||
fid_key = str(fid)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue