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
66217bb2
Commit
66217bb2
authored
Dec 18, 2015
by
Sacha
Committed by
SXibolet@2PITAU
Dec 18, 2015
Browse files
fix template typo
parent
4ade7fc5
Changes
2
Hide whitespace changes
Inline
Side-by-side
controversy/content.py
View file @
66217bb2
...
...
@@ -21,6 +21,7 @@ from sentiment import textblob, is_positive, is_negative, sentistrength
from
functools
import
partial
from
operator
import
is_not
from
nltk.corpus
import
stopwords
from
twython.exceptions
import
TwythonAuthError
MAX_ATTEMPTS
=
6
...
...
@@ -262,4 +263,8 @@ def twitter_search(keyword, training=False):
def
get_auth
(
comb
=
0
):
auth
=
Twython
(
TWITTER_KEYS
[
comb
],
TWITTER_SECRETS
[
comb
],
oauth_version
=
2
)
return
Twython
(
TWITTER_KEYS
[
comb
],
access_token
=
auth
.
obtain_access_token
())
try
:
return
Twython
(
TWITTER_KEYS
[
comb
],
access_token
=
auth
.
obtain_access_token
())
except
TwythonAuthError
:
# API key stopped working
return
get_auth
(
comb
=
comb
+
1
)
controversy/templates/account.html
View file @
66217bb2
...
...
@@ -42,7 +42,6 @@
{% else %}
…
nothing yet. May we interest you in
<a
href=
"../"
>
a try
</a>
?
{% endif %}
{% endif %}
</ul>
...
...
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