adding dhid

This commit is contained in:
Cayo Puigdefabregas 2021-09-22 11:30:37 +02:00
parent 9df5872a44
commit 328facab50
1 changed files with 2 additions and 2 deletions

View File

@ -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']