add: CONTRIBUTORS + pep8
This commit is contained in:
parent
b21f2e4aaa
commit
94d031444d
@ -86,5 +86,8 @@ In chronological order:
|
|||||||
* @p-vitt & @M4a1x
|
* @p-vitt & @M4a1x
|
||||||
* Documentation on troubleshooting for uberspace users
|
* Documentation on troubleshooting for uberspace users
|
||||||
|
|
||||||
|
* @benjhess
|
||||||
|
* Optionnal gravatar support
|
||||||
|
|
||||||
* [Your name or handle] <[email or website]>
|
* [Your name or handle] <[email or website]>
|
||||||
* [Brief summary of your changes]
|
* [Brief summary of your changes]
|
||||||
|
@ -732,6 +732,7 @@ class API(object):
|
|||||||
comment['replies'] = self._process_fetched_list(replies, plain)
|
comment['replies'] = self._process_fetched_list(replies, plain)
|
||||||
|
|
||||||
return JSON(rv, 200)
|
return JSON(rv, 200)
|
||||||
|
|
||||||
def _add_gravatar_image(self, item):
|
def _add_gravatar_image(self, item):
|
||||||
if not self.conf.getboolean('gravatar'):
|
if not self.conf.getboolean('gravatar'):
|
||||||
return item
|
return item
|
||||||
@ -743,6 +744,7 @@ class API(object):
|
|||||||
item['gravatar_image'] = gravatar_url.format(email_md5_hash)
|
item['gravatar_image'] = gravatar_url.format(email_md5_hash)
|
||||||
|
|
||||||
return item
|
return item
|
||||||
|
|
||||||
def _process_fetched_list(self, fetched_list, plain=False):
|
def _process_fetched_list(self, fetched_list, plain=False):
|
||||||
for item in fetched_list:
|
for item in fetched_list:
|
||||||
|
|
||||||
@ -851,7 +853,6 @@ class API(object):
|
|||||||
@apiSuccessExample Counts of 5 threads:
|
@apiSuccessExample Counts of 5 threads:
|
||||||
[2, 18, 4, 0, 3]
|
[2, 18, 4, 0, 3]
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def counts(self, environ, request):
|
def counts(self, environ, request):
|
||||||
|
|
||||||
data = request.get_json()
|
data = request.get_json()
|
||||||
|
Loading…
Reference in New Issue
Block a user