Commit cd62e2b1 by Tu Nombre

Carga de snaps

1 parent e5bc68be
......@@ -353,6 +353,7 @@ def login(u, p, s):
def gotolinea(driver_abs,answer):
driver = driver_abs.driver
#Aca encontrar nuemero de planilla
element = driver.find_element_by_xpath('//*[@id="ui-id-5"]')
element.click()
time.sleep(1)
......
......@@ -6,7 +6,8 @@ let pendingRequests = 0;
function CargarLista() {
const requestData = {
"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,
"params": {
"ApiKey": "sdñÑREgerqw3$E#]ÑgdfbversdfFfew435",
......@@ -134,7 +135,8 @@ async function fetchChat() {
function BuscarLista(fecha,dominio) {
const requestData = {
"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,
"params": {
"ApiKey": "sdñÑREgerqw3$E#]ÑgdfbversdfFfew435",
......
......@@ -49,12 +49,24 @@ function usePlanillaCentValue(planillaCentValue) {
.then(data => {
// Asume que el servidor devuelve una URL para la página generada
//window.location.href = data.url;
llendoTentativo(data)
llendoTentativo(data);
recuperandoSnap(data);
})
.catch(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) {
//console.log(data)
......
......@@ -2,7 +2,8 @@ function CargarLista() {
//API KET
const requestData = {
"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,
"params": {
"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!