uidNumber filter

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

1
app.py
View File

@ -761,6 +761,7 @@ def find_uid_number(conf, conn):
for i in conn.response: for i in conn.response:
uidNumbersList.append(i['attributes']['uidNumber']) uidNumbersList.append(i['attributes']['uidNumber'])
uidNumbersList = list(filter(lambda i: type(i) is int, uidNumbersList))
return max(uidNumbersList) return max(uidNumbersList)
else: else: