Commit 4e60b85f authored by Stuart Fisher's avatar Stuart Fisher
Browse files

deal with potential casing differences

parent bed65a0e
Pipeline #94081 passed with stages
in 3 minutes and 55 seconds
......@@ -132,7 +132,7 @@ class BVWebserver:
def find_camera(self, attr):
"""Find the correct camera personal_name from a device attr"""
for camera_name, camera_info in self.cameras_running.items():
if camera_info[0].name() in attr or camera_info[1].name() in attr:
if camera_info[0].name().lower() in attr.lower() or camera_info[1].name().lower() in attr.lower():
return camera_name
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment