|
|
@ -14,13 +14,15 @@ class MultiDeviceDbSupport: |
|
|
def deviceHash2Match(self, devices_hashes = []): |
|
|
def deviceHash2Match(self, devices_hashes = []): |
|
|
print(devices_hashes) |
|
|
print(devices_hashes) |
|
|
if devices_hashes == None: |
|
|
if devices_hashes == None: |
|
|
devices_hashes = [self.core.defaultDeviceUUID] |
|
|
devices_hashes = [self.core.defaultDeviceUUIDHash] |
|
|
elif (type(devices_hashes) == list): |
|
|
elif (type(devices_hashes) == list): |
|
|
if devices_hashes.__len__() == 0: |
|
|
pass |
|
|
devices_hashes = [self.core.defaultDeviceUUID] |
|
|
|
|
|
else: |
|
|
else: |
|
|
devices_hashes = [devices_hashes] |
|
|
devices_hashes = [devices_hashes] |
|
|
|
|
|
|
|
|
|
|
|
if devices_hashes.__len__() == 0: |
|
|
|
|
|
devices_hashes = [self.core.defaultDeviceUUIDHash] |
|
|
|
|
|
|
|
|
orPart = [] |
|
|
orPart = [] |
|
|
for hash in devices_hashes: |
|
|
for hash in devices_hashes: |
|
|
uuid = self.core.devicesUuidHashToUuid.get(hash, "") |
|
|
uuid = self.core.devicesUuidHashToUuid.get(hash, "") |
|
|
|