Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wantzel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
9
Issues
9
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
La Quadrature du Net
rpteam
wantzel
Commits
31d7345c
Commit
31d7345c
authored
Oct 31, 2016
by
Mindiell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added known users in order to reduce spam
parent
08e4ec67
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
wantzel.py
wantzel.py
+2
-0
No files found.
wantzel.py
View file @
31d7345c
...
...
@@ -519,6 +519,7 @@ class Wantzel(object):
connection
.
execute
(
"UPDATE rpator SET score=score+1 WHERE name='%s';"
%
user
)
else
:
connection
.
execute
(
"INSERT INTO rpator (name, score) VALUES ('%s', 1);"
%
user
)
connection
.
commit
()
# Ok, we got all information we need, let's answer now !
if
master_user
:
...
...
@@ -554,6 +555,7 @@ class Wantzel(object):
connection
=
sqlite3
.
connect
(
config
.
sqlite_db
)
connection
.
execute
(
"UPDATE rpator SET score=score-1 WHERE user='%s'"
%
user
)
connection
.
execute
(
"DELETE FROM rpator WHERE score<1"
)
connection
.
commit
()
# Date of next cleaning
next_week
=
time
.
localtime
(
time
.
mktime
(
time
.
localtime
())
+
(
MASTER_CLEANING
*
86400
))
self
.
next_cleaning
=
time
.
strptime
(
"%s-%s-%s %s"
%
(
...
...
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