uidNumber filter

This commit is contained in:
aitzol 2022-04-24 18:39:17 +02:00
parent 4608abff5f
commit 20ea82d349

3
app.py
View File

@ -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: