mirror of
https://gitlab.com/cief-data/data-management.git
synced 2026-08-19 04:13:57 +00:00
delete quote
This commit is contained in:
@@ -38,7 +38,7 @@ def mysql_dict_sql_to_csv(SQL_DICT, path, mysqldb, mysqlcursor):
|
|||||||
headers = [col[0] for col in mysqlcursor.description] # get headers
|
headers = [col[0] for col in mysqlcursor.description] # get headers
|
||||||
mysqlresult.insert(0, tuple(headers))
|
mysqlresult.insert(0, tuple(headers))
|
||||||
fp = open(concat(path,filename), 'w', newline = '', encoding = 'utf-8-sig')
|
fp = open(concat(path,filename), 'w', newline = '', encoding = 'utf-8-sig')
|
||||||
myFile = csv.writer(fp,delimiter='|',quotechar='"')
|
myFile = csv.writer(fp,delimiter='|')
|
||||||
myFile.writerows(mysqlresult)
|
myFile.writerows(mysqlresult)
|
||||||
fp.close()
|
fp.close()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user