Se puso la url de producion al script para luego hacer el merge con el main.

SyncUpdate2IONOS
Luis Rendon 7 months ago
parent eba3b2a4d2
commit 916181bc0b
  1. 8
      SyncReferences2IONOS/SyncReferences2IONOS.py

@ -134,7 +134,7 @@ def CreateFolderContent():
# Procesar archivo
if WriteToLog(referencia):
processed_references.append(referencia)
URL = 'http://localhost:5000/api/AmazonInvoice/UploadSIRReference?ArchivoM=' +\
URL = 'https://www.gemcousa.mx/GEMCOBackend/api/AmazonInvoice/UploadSIRReference?ArchivoM=' +\
archivoM+'&aduana='+aduana+'&patente='+patente + \
'&pedimento='+pedimento+'&fPago=' + \
str(fPago)+'&TipoCambio='+str(tipoCambio)+'&clave='+clave
@ -150,7 +150,7 @@ def CreateFolderContent():
'clave': clave
}
print( f"la referencia {referencia} ya ha sido posteada." )
r = requests.post(url=URL,files=multiple_files, verify=False, timeout=1000000)
r = requests.post(url=URL,files=multiple_files, verify=False, timeout=1000)
except Exception as e:
print("Error: %s" % e)
# WriteToLog(r.text)
@ -161,6 +161,6 @@ CreateFolderContent()
#URL = 'https://www.gemcousa.mx/GEMCOBackend/api/AmazonInvoice/UploadSIRReference?ArchivoM=' +\
# URL = 'http://localhost:5000/api/AmazonInvoice/UploadSIRReference?ArchivoM=' +\
# URL = 'http://localhost:5000/api/AmazonInvoice/UploadSIRReference?ArchivoM=' +\
# URL 'https://www.gemcousa.solutions/GEMCOBackend/api/AmazonInvoice/UploadSIRReference?ArchivoM=' +\
Loading…
Cancel
Save