Skip to content
GitLab
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
ce3753cf
Commit
ce3753cf
authored
Apr 18, 2018
by
Mindiell
Browse files
Added colors on monitoring messages
parent
edb32d76
Changes
1
Hide whitespace changes
Inline
Side-by-side
monitor.py
View file @
ce3753cf
...
...
@@ -69,8 +69,9 @@ class Monitor():
# if date of update is greater than today midnight
if
today
<
entry
.
updated_parsed
:
if
wiki
.
last_entry_updated
<
entry
.
updated_parsed
:
# Ecriture de la mise à jour sur le canal de travail
messages
.
append
(
"""%s a mis à jour la page "%s" sur le wiki (%s)"""
%
(
# Sending monitoring on working chan
messages
.
append
(
"""[
\x03
11%s
\x03
]
\x03
9%s
\x03
a mis à jour la page
\x03
8%s
\x03
=>
\x03
13%s
\x03
"""
%
(
wiki
.
name
,
entry
.
author
.
encode
(
"utf-8"
),
entry
.
title
.
encode
(
"utf-8"
),
entry
.
link
.
encode
(
"utf-8"
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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