Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sacha
CONTROVERSY
Commits
729cdef7
Commit
729cdef7
authored
Jan 09, 2016
by
Sacha
Committed by
SXibolet@2PITAU
Jan 09, 2016
Browse files
Merge branch 'master' of
https://github.com/gdyer/controversy
parents
645811cc
cc1d3976
Changes
2
Hide whitespace changes
Inline
Side-by-side
controversy/app.py
View file @
729cdef7
...
...
@@ -30,13 +30,11 @@ application.register_blueprint(api, url_prefix='/api')
application
.
register_blueprint
(
mturk
,
url_prefix
=
'/training'
)
application
.
secret_key
=
SECRET_KEY
class
AppConfig
(
object
):
RECAPTCHA_PUBLIC_KEY
=
CAPTCHA_PUBLIC
RECAPTCHA_PRIVATE_KEY
=
CAPTCHA_PRIVATE
VERSION
=
'0.4'
testing
=
DEBUG
application
.
config
[
'RECAPTCHA_PUBLIC_KEY'
]
=
CAPTCHA_PUBLIC
application
.
config
[
'RECAPTCHA_PRIVATE_KEY'
]
=
CAPTCHA_PRIVATE
application
.
config
[
'version'
]
=
'0.4'
application
.
config
[
'testing'
]
=
DEBUG
application
.
config
.
from_object
(
AppConfig
)
def
plain_text_resp
(
message
,
code
=
200
):
return
Response
(
message
,
...
...
controversy/history_spider.py
View file @
729cdef7
# -*- coding: utf-8 -*-
import
db
from
querier
import
new_query
map
(
lambda
entry
:
new_query
(
entry
[
'Term'
]),
db
.
histories
())
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