Merge pull request #165 from eReuse/changes/dhid

adding dhid
This commit is contained in:
cayop 2021-09-22 12:28:25 +02:00 committed by GitHub
commit 4adcff0d6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View File

@ -1 +1 @@
__version__ = "1.0.10-beta"
__version__ = "1.0.9-beta"

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -183,7 +183,7 @@ def test_live_export_csv2(user: UserClient, client: Client, app: Devicehub):
assert "4692" in csv_user
assert "8692" in csv_user
assert "DevicehubID" in csv_user
assert "DHID" in csv_user
@pytest.mark.mvp