# HG changeset patch # User www-data # Date 1465831254 -3600 # Node ID 23e6eb6d416cfa7441133e55d2f3adc73260bab4 # Parent a4e64fec24b3b0fef8fcb40dac15cd38dcf1459a# Parent 3b2fe433b06a996c2e03a37449ffc0494f7bb23f Merge branch 'master' of https://github.com/BrechtDeMan/WebAudioEvaluationTool diff -r a4e64fec24b3 -r 23e6eb6d416c python/comment_parser.py --- a/python/comment_parser.py Sun Jun 05 16:20:48 2016 +0100 +++ b/python/comment_parser.py Mon Jun 13 16:20:54 2016 +0100 @@ -74,14 +74,17 @@ dialect="excel", quoting=csv.QUOTE_ALL) commentstr = audioelement.find("./comment/response").text + valuestr = audioelement.find("./value").text if commentstr is None: commentstr = '' + if valuestr is None: + valuestr = '' # anonymous comments: #writer.writerow([commentstr]) # .encode("utf-8") # comments with (file) name: - writer.writerow([file[:-4]] + [commentstr]) + writer.writerow([file[:-4]] + [valuestr] + [commentstr.encode("utf-8")]) #TODO Replace 'new line' in comment with something else?