Correction du bug lorsque GLPI a plusieurs fois le même appareil

This commit is contained in:
2025-07-10 19:45:04 +02:00
parent 0a5e780546
commit 1228e2ac2a

View File

@ -55,6 +55,7 @@ class GLPIAPI:
return deviceID, data, search["totalcount"]
elif(search["totalcount"] > 1):
deviceID = list(search["data"].keys())
return deviceID, search["data"], search["totalcount"]
else:
return None, None, 0