From 11d03e6a700cb26e6324eca20d3ac93f2c976af5 Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Tue, 7 Jun 2016 10:22:15 -0700 Subject: [PATCH] Filter deleted cameras out of index() Obviously the intent was not ever to include deleted cameras, I just didn't realize they'd expose this way. --- uvcclient/nvr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uvcclient/nvr.py b/uvcclient/nvr.py index a2b709d..d3dc48b 100755 --- a/uvcclient/nvr.py +++ b/uvcclient/nvr.py @@ -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.