Commit cd62e2b1 by Tu Nombre

Carga de snaps

1 parent e5bc68be
...@@ -353,6 +353,7 @@ def login(u, p, s): ...@@ -353,6 +353,7 @@ def login(u, p, s):
def gotolinea(driver_abs,answer): def gotolinea(driver_abs,answer):
driver = driver_abs.driver driver = driver_abs.driver
#Aca encontrar nuemero de planilla
element = driver.find_element_by_xpath('//*[@id="ui-id-5"]') element = driver.find_element_by_xpath('//*[@id="ui-id-5"]')
element.click() element.click()
time.sleep(1) time.sleep(1)
......
...@@ -6,7 +6,8 @@ let pendingRequests = 0; ...@@ -6,7 +6,8 @@ let pendingRequests = 0;
function CargarLista() { function CargarLista() {
const requestData = { const requestData = {
"token": "sdñÑREgerqw3$E#]ÑgdfbversdfFfew435", "token": "sdñÑREgerqw3$E#]ÑgdfbversdfFfew435",
"url": "https://hgt.hgt.com.ar/api_rto/diaria", //"url": "https://hgt.hgt.com.ar/api_rto/diaria",
"url": "https://validacion.hgtsa.com.ar/api_rto/diaria",
"clear": true, "clear": true,
"params": { "params": {
"ApiKey": "sdñÑREgerqw3$E#]ÑgdfbversdfFfew435", "ApiKey": "sdñÑREgerqw3$E#]ÑgdfbversdfFfew435",
...@@ -134,7 +135,8 @@ async function fetchChat() { ...@@ -134,7 +135,8 @@ async function fetchChat() {
function BuscarLista(fecha,dominio) { function BuscarLista(fecha,dominio) {
const requestData = { const requestData = {
"token": "sdñÑREgerqw3$E#]ÑgdfbversdfFfew435", "token": "sdñÑREgerqw3$E#]ÑgdfbversdfFfew435",
"url": "https://hgt.hgt.com.ar/api_rto/buscador", //"url": "https://hgt.hgt.com.ar/api_rto/buscador",
"url": "https://validacion.hgtsa.com.ar/api_rto/buscador",
"clear": true, "clear": true,
"params": { "params": {
"ApiKey": "sdñÑREgerqw3$E#]ÑgdfbversdfFfew435", "ApiKey": "sdñÑREgerqw3$E#]ÑgdfbversdfFfew435",
......
...@@ -49,12 +49,24 @@ function usePlanillaCentValue(planillaCentValue) { ...@@ -49,12 +49,24 @@ function usePlanillaCentValue(planillaCentValue) {
.then(data => { .then(data => {
// Asume que el servidor devuelve una URL para la página generada // Asume que el servidor devuelve una URL para la página generada
//window.location.href = data.url; //window.location.href = data.url;
llendoTentativo(data) llendoTentativo(data);
recuperandoSnap(data);
}) })
.catch(error => { .catch(error => {
console.log('There has been a problem with your fetch operation:', error); console.log('There has been a problem with your fetch operation:', error);
}); });
} }
function recuperandoSnap(data){
if (!data.snaper){
return
}
console.log("Cargando snap")
const objeto = JSON.parse(data.snap);
const snap = JSON.parse(objeto.data);
//Limpio los datos del formulario
console.log(snap)
window.populateFieldsFromJson(snap)
}
function llendoTentativo(data) { function llendoTentativo(data) {
//console.log(data) //console.log(data)
......
...@@ -2,7 +2,8 @@ function CargarLista() { ...@@ -2,7 +2,8 @@ function CargarLista() {
//API KET //API KET
const requestData = { const requestData = {
"token": "sdñÑREgerqw3$E#]ÑgdfbversdfFfew435", "token": "sdñÑREgerqw3$E#]ÑgdfbversdfFfew435",
"url": "https://hgt.hgt.com.ar/api_rto/diaria", //"url": "https://hgt.hgt.com.ar/api_rto/diaria",
"url": "https://validacion.hgtsa.com.ar/api_rto/diaria",
"clear": true, "clear": true,
"params": { "params": {
"ApiKey": "sdñÑREgerqw3$E#]ÑgdfbversdfFfew435", "ApiKey": "sdñÑREgerqw3$E#]ÑgdfbversdfFfew435",
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!