From 328facab506eeab922010ab0813cd82c85d424f6 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 22 Sep 2021 11:30:37 +0200 Subject: [PATCH] adding dhid --- ereuse_devicehub/resources/documents/device_row.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ereuse_devicehub/resources/documents/device_row.py b/ereuse_devicehub/resources/documents/device_row.py index 7379404d..4e683ef9 100644 --- a/ereuse_devicehub/resources/documents/device_row.py +++ b/ereuse_devicehub/resources/documents/device_row.py @@ -42,7 +42,7 @@ class DeviceRow(OrderedDict): software = "{software} {version}".format( software=snapshot.software.name, version=snapshot.version) # General information about device - self['DevicehubID'] = device.devicehub_id + self['DHID'] = device.devicehub_id self['DocumentID'] = self.document_id self['Public Link'] = '{url}{id}'.format( url=url_for('Device.main', _external=True), @@ -425,7 +425,7 @@ class ActionRow(OrderedDict): def __init__(self, allocate): super().__init__() # General information about allocates, deallocate and lives - self['DevicehubID'] = allocate['devicehubID'] + self['DHID'] = allocate['devicehubID'] self['Hid'] = allocate['hid'] self['Start'] = allocate['start'] self['FinalUserCode'] = allocate['finalUserCode']