uidNumber filter
This commit is contained in:
parent
4608abff5f
commit
20ea82d349
3
app.py
3
app.py
@ -760,7 +760,8 @@ def find_uid_number(conf, conn):
|
|||||||
uidNumbersList=[]
|
uidNumbersList=[]
|
||||||
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user