mirror of https://gitlab.com/bashrc2/epicyon
Quotes around strings
parent
ec6820dd9a
commit
fbb9205e6e
14
shares.py
14
shares.py
|
@ -965,15 +965,15 @@ def sharesCatalogCSVEndpoint(baseDir: str, httpPrefix: str,
|
|||
'id,type,hasType,startDate,expiryDate,' + \
|
||||
'quantity,price,Image,description\n'
|
||||
for item in catalogJson['DFC:supplies']:
|
||||
csvStr += item['@id'] + ','
|
||||
csvStr += item['@type'] + ','
|
||||
csvStr += item['DFC:hasType'] + ','
|
||||
csvStr += item['DFC:startDate'] + ','
|
||||
csvStr += item['DFC:expiryDate'] + ','
|
||||
csvStr += '"' + item['@id'] + '",'
|
||||
csvStr += '"' + item['@type'] + '",'
|
||||
csvStr += '"' + item['DFC:hasType'] + '",'
|
||||
csvStr += '"' + item['DFC:startDate'] + '",'
|
||||
csvStr += '"' + item['DFC:expiryDate'] + '",'
|
||||
csvStr += str(item['DFC:quantity']) + ','
|
||||
csvStr += item['DFC:price'] + ','
|
||||
csvStr += item['DFC:Image'] + ','
|
||||
csvStr += item['DFC:description'] + '\n'
|
||||
csvStr += '"' + item['DFC:Image'] + '",'
|
||||
csvStr += '"' + item['DFC:description'] + '"\n'
|
||||
return csvStr
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue