Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Luciano Barletta
/
message-service
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 0b5d2b68
authored
2024-06-20 13:25:26 -0300
by
juan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
se Agrega limpeza al metodo de estatus
1 parent
4b0a02e6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
Wpp1State.py
deploy.py
Wpp1State.py
View file @
0b5d2b6
...
...
@@ -74,6 +74,21 @@ class StateMail():
self
.
MailRompedor
=
[]
self
.
MailsEnviado
=
{}
#"MAIL@HOST": n
self
.
MailsBloqueados
=
{}
#"MAIL@HOST": datetimeDeDesbloqueo
fecha_actual
=
datetime
.
datetime
.
now
()
fecha_formateada
=
fecha_actual
.
strftime
(
'
%
Y-
%
m-
%
d'
)
self
.
FechaLimpieza
=
fecha_formateada
print
(
f
"Fecha de inicio {self.FechaLimpieza}"
)
def
LimpiezaDiaria
(
self
):
fecha_actual
=
datetime
.
datetime
.
now
()
fecha_formateada
=
fecha_actual
.
strftime
(
'
%
Y-
%
m-
%
d'
)
if
not
self
.
FechaLimpieza
!=
fecha_formateada
:
return
print
(
f
"Fecha de limpieza de limites {self.FechaLimpieza}"
)
self
.
Consultas
=
{}
#{MailUSer-pass-host-str(port):{"hora": datetime.datetime.now, "estado": self.chequear_stado_WB(telefono)},}
self
.
MailRompedor
=
[]
self
.
MailsEnviado
=
{}
#"MAIL@HOST": n
self
.
MailsBloqueados
=
{}
#"MAIL@HOST": datetimeDeDesbloqueo
def
ChequearCuentaBlockeadaYEnviar
(
self
,
mail
,
smtphost
):
"""Chequeo la cuenta para ver si esta llegando al limite de bloqueo
...
...
deploy.py
View file @
0b5d2b6
...
...
@@ -71,6 +71,7 @@ def estadoSMS():
@app.route
(
"/status/<Id>"
,
methods
=
[
'GET'
,
'POST'
])
def
estadoGeneral
(
Id
):
MailState
.
LimpiezaDiaria
()
Id
=
str
(
Id
)
rta
=
mongo_db
.
obtener_estado
(
Id
)
return
jsonify
({
"estado"
:
rta
})
...
...
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