Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Miguel Ángel González Gallardo
/
AnalizadorLogs
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0599e538
authored
Mar 23, 2021
by
Juan Santos Poyato
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Correciones preprocesamiento. Terminando Cesta
parent
1a73c970
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
5 deletions
codigo/Dato.py
codigo/__pycache__/Cesta.cpython-39.pyc
codigo/__pycache__/Dato.cpython-39.pyc
codigo/__pycache__/idsUsuarioSesion.cpython-39.pyc
codigo/idsUsuarioSesion.py
codigo/Dato.py
View file @
0599e538
...
@@ -38,14 +38,15 @@ class Dato:
...
@@ -38,14 +38,15 @@ class Dato:
self
.
metodoPeticion
,
c
=
sacarLinea
(
cadena
,
c
,
aux
,
' '
)
self
.
metodoPeticion
,
c
=
sacarLinea
(
cadena
,
c
,
aux
,
' '
)
self
.
url
,
c
=
sacarLinea
(
cadena
,
c
,
aux
,
' '
)
self
.
url
,
c
=
sacarLinea
(
cadena
,
c
,
aux
,
' '
)
self
.
vProtocolo
,
c
=
sacarLinea
(
cadena
,
c
,
aux
,
'"'
)
self
.
vProtocolo
,
c
=
sacarLinea
(
cadena
,
c
,
aux
,
'"'
)
c
+=
1
# Obtenemos estado del código, volumen de tranferencia y calculamos marca de tiempo
# Obtenemos estado del código y el volumen de tranferencia
c
+=
1
self
.
statusCode
,
c
=
sacarLinea
(
cadena
,
c
,
aux
,
' '
)
self
.
statusCode
,
c
=
sacarLinea
(
cadena
,
c
,
aux
,
' '
)
self
.
volumenTransf
,
c
=
sacarLinea
(
cadena
,
c
,
aux
,
' '
)
self
.
volumenTransf
,
c
=
sacarLinea
(
cadena
,
c
,
aux
,
' '
)
fechaRegistro
=
int
(
self
.
fecha
.
timestap
())
# Obtenemos la marca de tiempo segun al primer dia de agosto de 1995 (priemera entrada) y la fecha del registro
fechaBase
=
int
(
datetime
.
strptime
(
"01/01/1995:00:00:00"
,
'
%
d/
%
m/
%
Y:
%
H:
%
M:
%
S'
)
.
timestamp
())
fechaRegistro
=
self
.
fecha
.
timestamp
()
fechaBase
=
datetime
.
strptime
(
"01/08/1995:00:00:00"
,
'
%
d/
%
m/
%
Y:
%
H:
%
M:
%
S'
)
.
timestamp
()
self
.
marcaTiempo
=
int
(
fechaRegistro
-
fechaBase
)
self
.
marcaTiempo
=
int
(
fechaRegistro
-
fechaBase
)
# Se consideran valores erroneos, anomalos o nulos para descartarse este dato (se ignora
# Se consideran valores erroneos, anomalos o nulos para descartarse este dato (se ignora
...
...
codigo/__pycache__/Cesta.cpython-39.pyc
View file @
0599e538
No preview for this file type
codigo/__pycache__/Dato.cpython-39.pyc
View file @
0599e538
No preview for this file type
codigo/__pycache__/idsUsuarioSesion.cpython-39.pyc
View file @
0599e538
No preview for this file type
codigo/idsUsuarioSesion.py
View file @
0599e538
...
@@ -35,7 +35,7 @@ def ordenaRegistros(registros):
...
@@ -35,7 +35,7 @@ def ordenaRegistros(registros):
registros
[
i
]
=
reg2
registros
[
i
]
=
reg2
registros
[
j
+
i
]
=
reg1
registros
[
j
+
i
]
=
reg1
else
:
# Se organiza por marca de tiempo si son iguales
else
:
# Se organiza por marca de tiempo si son iguales
if
reg2
.
idUsuario
is
reg1
.
idUsuario
and
reg2
.
marcaTiempo
<
reg1
.
marcaTiempo
:
if
reg2
.
idUsuario
is
reg1
.
idUsuario
and
reg2
.
marcaTiempo
>
reg1
.
marcaTiempo
:
registros
[
i
]
=
reg2
registros
[
i
]
=
reg2
registros
[
j
+
i
]
=
reg1
registros
[
j
+
i
]
=
reg1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment