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 0a7b9686
authored
2020-07-17 16:44:32 -0300
by
Tu Nombre
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Anti mamadas por exeso de mail 110
1 parent
f3fbc675
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
process.py
process.py
View file @
0a7b968
...
...
@@ -63,9 +63,9 @@ class Process:
self
.
_send
(
"partially delivered"
,
"mail"
)
self
.
stateMail
.
MailRompedor
=
[]
def
_send
(
self
,
s
erv
,
state
):
def
_send
(
self
,
s
tate
,
serv
):
salio
=
0
rows
=
self
.
conn
.
query
(
"SELECT * FROM msg WHERE state = ? and serv = ? "
,(
States
.
queued
,
serv
))
rows
=
self
.
conn
.
query
(
"SELECT * FROM msg WHERE state = ? and serv = ? "
,(
state
,
serv
))
print
(
"cantidad pendiente "
,
serv
,
len
(
rows
))
for
query
in
DBconnection
.
parseToTable
(
rows
):
# si no existe la carpeta borrar el mensaje
...
...
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