Skip to content
Snippets Groups Projects
Commit 6056cfa7 authored by Jan Hartig's avatar Jan Hartig
Browse files

Ignore case when comparing requested room name to serial2room file

parent e47dd21e
No related branches found
No related tags found
1 merge request!24Ignore case when comparing requested room name to serial2room file
Pipeline #30135 passed
...@@ -45,7 +45,7 @@ async def unlock_room(request: Request): ...@@ -45,7 +45,7 @@ async def unlock_room(request: Request):
serial2room = await get_serial2room() serial2room = await get_serial2room()
for entry in serial2room.values(): for entry in serial2room.values():
if room == entry["room"]: if room.lower() == entry["room"].lower():
return {"error": "Raum nicht freischaltbar."} return {"error": "Raum nicht freischaltbar."}
except KeyError: except KeyError:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment