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
piphone
piphone-sip
Commits
289e5348
Commit
289e5348
authored
Apr 19, 2017
by
okhin
Browse files
Fixing the parameters for the blacklisted items passed to the admin page
parent
e39f3687
Changes
1
Hide whitespace changes
Inline
Side-by-side
piphone.py
View file @
289e5348
...
...
@@ -487,7 +487,7 @@ def little_admin():
users
=
db
.
execute
(
'SELECT api, token, admin FROM users'
).
fetchall
()
# Get the list of all blacklist patterns
balcklisted
=
db
.
execute
(
'SELECT pattern, reason FROM blacklist'
).
fetchall
()
return
template
(
'index'
,
users
=
users
,
blacklists
=
blacklist
)
return
template
(
'index'
,
users
=
users
,
blacklists
=
blacklist
ed
)
@
app
.
post
(
'/admin'
)
@
auth_basic
(
login_admin
)
...
...
@@ -518,7 +518,7 @@ def medium_admin():
users
=
db
.
execute
(
'SELECT api, token, admin FROM users'
).
fetchall
()
balcklisted
=
db
.
execute
(
'SELECT pattern, reason FROM blacklist'
).
fetchall
()
return
template
(
'index'
,
users
=
users
,
blacklists
=
blacklist
)
return
template
(
'index'
,
users
=
users
,
blacklists
=
blacklist
ed
)
if
__name__
==
'__main__'
:
...
...
Write
Preview
Supports
Markdown
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