Convert quotes for csv

main
Bob Mottram 2021-07-28 10:50:27 +01:00
parent fbb9205e6e
commit 9130e5ce61
1 changed files with 2 additions and 1 deletions

View File

@ -973,7 +973,8 @@ def sharesCatalogCSVEndpoint(baseDir: str, httpPrefix: str,
csvStr += str(item['DFC:quantity']) + ','
csvStr += item['DFC:price'] + ','
csvStr += '"' + item['DFC:Image'] + '",'
csvStr += '"' + item['DFC:description'] + '"\n'
description = item['DFC:description'].replace('"', "'")
csvStr += '"' + description + '"\n'
return csvStr