Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
rpteam
wantzel
Commits
4b65a302
Commit
4b65a302
authored
May 22, 2015
by
Mindiell
Browse files
Removed some print comments
parent
fae4e862
Changes
1
Hide whitespace changes
Inline
Side-by-side
wantzel.py
View file @
4b65a302
...
...
@@ -164,7 +164,7 @@ class Wantzel(object):
"""
# Cleaning user name
user
=
re
.
search
(
"([^!]*)!"
,
user
).
group
(
1
)
print
(
"Message received: %s %s %s"
%
(
user
,
channel
,
msg
))
#
print("Message received: %s %s %s" % (user, channel, msg))
# Whatever is done, get the title of an existing url in a message
title
=
""
if
"http"
in
msg
:
...
...
@@ -395,7 +395,7 @@ class Wantzel(object):
names
=
[
name
for
name
in
result
.
group
(
1
).
split
(
", "
)
if
name
!=
""
]
names
.
append
(
result
.
group
(
3
))
names
=
set
(
names
)
print
(
names
)
#
print(names)
connection
=
sqlite3
.
connect
(
config
.
sqlite_db
)
for
name
in
names
:
connection
.
execute
(
"DELETE FROM moderator WHERE name=?"
,
(
name
,
))
...
...
@@ -452,8 +452,8 @@ class Wantzel(object):
entry
.
title
.
encode
(
"utf-8"
),
entry
.
link
.
encode
(
"utf-8"
)
))
print
(
entry
.
published_parsed
)
print
(
entry
.
title
)
#
print(entry.published_parsed)
#
print(entry.title)
# Save last_entry_published
self
.
last_entry_published
=
entry
.
published_parsed
last_entry_published
=
time
.
strftime
(
...
...
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