From 20ea82d3499f3cf90a920eb58bc1ba60e8e69cb0 Mon Sep 17 00:00:00 2001 From: aitzol Date: Sun, 24 Apr 2022 18:39:17 +0200 Subject: [PATCH] uidNumber filter --- app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index b36029a..fd46304 100644 --- a/app.py +++ b/app.py @@ -760,7 +760,8 @@ def find_uid_number(conf, conn): uidNumbersList=[] for i in conn.response: uidNumbersList.append(i['attributes']['uidNumber']) - + + uidNumbersList = list(filter(lambda i: type(i) is int, uidNumbersList)) return max(uidNumbersList) else: