client name from DB

This commit is contained in:
Mayank Aamseek
2024-04-09 15:18:27 +05:30
parent 6685e8ceb5
commit e42dc24a85
+2 -2
View File
@@ -70,7 +70,7 @@ if user_mail in user_list:
client = client_s3_paths.get(client)
# # to be deleted when buckets for different clients are ready; below line is added only for testing the corresponding DAG
# client = 'doczy-dev-infra-textract'
client = 'doczy-ai-client-1'
file_row = st.columns([0.1, 0.8])
with file_row[0]:
@@ -108,7 +108,7 @@ if user_mail in user_list:
batch_id+'/'+landing_zone+'/'+str(uploaded_file.name))
# TODO: Test this insert function with snowflake
insert_upload_logs(client, batch_id, str(uploaded_file.name), user_mail)
insert_upload_logs(batch_id, client, str(uploaded_file.name), datetime.now().strftime("%Y-%m-%d %H:%M:%S"), user_mail)
file_names.append(str(uploaded_file.name))
st.write(f"{batch_id} created")