Merge pull request #76 from eReuse/bigfix/csv-export

adding columns rate when no there are rate
This commit is contained in:
cayop 2020-10-23 10:34:24 +02:00 committed by GitHub
commit 02b18ff115
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -95,6 +95,15 @@ class DeviceRow(OrderedDict):
self['RAM Range'] = rate.ram_range.name
self['Data Storage Rate'] = rate.data_storage
self['Data Storage Range'] = rate.data_storage_range.name
else:
self['Device Rate'] = ''
self['Device Range'] = ''
self['Processor Rate'] = ''
self['Processor Range'] = ''
self['RAM Rate'] = ''
self['RAM Range'] = ''
self['Data Storage Rate'] = ''
self['Data Storage Range'] = ''
self['Price'] = none2str(device.price)