Skip to content

Commit

Permalink
Filter deleted cameras out of index()
Browse files Browse the repository at this point in the history
Obviously the intent was not ever to include deleted cameras, I just
didn't realize they'd expose this way.
  • Loading branch information
kk7ds committed Jun 7, 2016
1 parent e6d41b2 commit 11d03e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uvcclient/nvr.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def index(self):
'state': x['state'],
'managed': x['managed'],
'id': x['_id'],
} for x in cams]
} for x in cams if not x['deleted']]

def name_to_uuid(self, name):
"""Attempt to convert a camera name to its UUID.
Expand Down

0 comments on commit 11d03e6

Please sign in to comment.