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 c0e4da59
authored
2020-07-29 19:50:37 -0300
by
Tu Nombre
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
se pone temporisador al server
1 parent
bbbee37a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
process.py
process.py
View file @
c0e4da5
...
@@ -64,7 +64,7 @@ class Process:
...
@@ -64,7 +64,7 @@ class Process:
self
.
stateMail
.
MailRompedor
=
[]
self
.
stateMail
.
MailRompedor
=
[]
def
_send
(
self
,
state
,
serv
):
def
_send
(
self
,
state
,
serv
):
fin
=
datetime
.
datetime
.
now
()
+
datetime
.
datetime
.
timedelta
(
seconds
=
15
)
fin
=
datetime
.
datetime
.
now
()
+
datetime
.
timedelta
(
seconds
=
15
)
rows
=
self
.
conn
.
query
(
"SELECT * FROM msg WHERE state = ? and serv = ? "
,(
state
,
serv
))
rows
=
self
.
conn
.
query
(
"SELECT * FROM msg WHERE state = ? and serv = ? "
,(
state
,
serv
))
if
not
len
(
rows
)
==
0
:
if
not
len
(
rows
)
==
0
:
print
(
"cantidad pendiente "
,
serv
,
len
(
rows
))
print
(
"cantidad pendiente "
,
serv
,
len
(
rows
))
...
...
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