mirror of
https://gitlab.com/cief-data/data-management.git
synced 2026-08-19 04:13:57 +00:00
enclose debug
This commit is contained in:
Binary file not shown.
@@ -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()
|
||||
|
||||
|
||||
Binary file not shown.
@@ -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
@@ -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
|
||||
Reference in New Issue
Block a user