Skip to content

Commit

Permalink
Fix camera deletion. (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrill authored Dec 22, 2020
1 parent 198e515 commit e441d8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/routers/cameras.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def get_camera_default_image_string(camera_id):


def delete_camera_from_areas(camera_id, config_dict):
areas = {key: config_dict[key] for key in config_dict.keys() if key.startswith("Area")}
areas = {key: config_dict[key] for key in config_dict.keys() if key.startswith("Area_")}
for key, area in areas.items():
cameras = area["Cameras"].split(",")
if camera_id in cameras:
Expand Down

0 comments on commit e441d8e

Please sign in to comment.