Merge pull request #24 from SamSepiol0/master

Fix for exporting csv file
This commit is contained in:
Vincent Yiu 2021-06-09 20:36:19 +08:00 committed by GitHub
commit fbe71fd191
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -311,7 +311,7 @@ def get_search():
f.close() f.close()
f = open(baseDir + '{}.csv'.format(outfile), 'wb') f = open(baseDir + '{}.csv'.format(outfile), 'wb')
newcsv='\n'.join(csv) newcsv='\n'.join(csv)
f.writelines(newcsv.encode()) f.write(newcsv.encode())
for x in csv: for x in csv:
f.write(x.join('\n').encode()) f.write(x.join('\n').encode())
f.close() f.close()