enclose debug

This commit is contained in:
Yam ZhengLim
2022-10-01 12:08:19 +08:00
parent bf3f0743d7
commit 2738b8bd82
5 changed files with 4 additions and 7 deletions
@@ -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
mysqlresult.insert(0, tuple(headers))
fp = open(concat(path,filename), 'w', newline = '', encoding = 'utf-8-sig')
myFile = csv.writer(fp)
myFile = csv.writer(fp,delimiter='|',quotechar='"')
myFile.writerows(mysqlresult)
fp.close()
+2 -1
View File
@@ -1,4 +1,5 @@
from google.cloud import storage
import boto3
def login_cloudstorage_credential(credential):
try:
@@ -18,4 +19,4 @@ def upload_to_bucket(storage_client, blob_name, file_path):
except Exception as e:
print(e)
print("[FUNCTION_ERROR]-upload_to_bucket",blob_name)
return False
return False
+1 -5
View File
@@ -1,6 +1,2 @@
mysql-connector-python==8.0.29
<<<<<<< HEAD
google-cloud-storage==2.5.0
=======
google-cloud-storage==2.5.0
>>>>>>> fd92c3d7ac25862e651876c9287408f2a9610730
google-cloud-storage==2.5.0