Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Luciano Barletta
/
Pruebas-RTO
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit cd62e2b1
authored
2024-11-04 18:28:38 -0300
by
Tu Nombre
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Carga de snaps
1 parent
e5bc68be
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
4 deletions
main.py
protected_static/buscador.js
protected_static/cargarapida.js
protected_static/historico.js
main.py
View file @
cd62e2b
...
...
@@ -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
)
...
...
protected_static/buscador.js
View file @
cd62e2b
...
...
@@ -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"
,
...
...
protected_static/cargarapida.js
View file @
cd62e2b
...
...
@@ -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)
...
...
protected_static/historico.js
View file @
cd62e2b
...
...
@@ -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"
,
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment