Skip to content

Commit

Permalink
Merge pull request #223 from Ilhasoft/develop
Browse files Browse the repository at this point in the history
Version 1.6.1
  • Loading branch information
Douglas Paz committed Oct 11, 2018
2 parents e6afaf6 + 8e0d3f4 commit cf49d84
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bothub/health/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ def check_database_connection(**kwargs):

def check_accessible_api(request, **kwargs):
import requests
logger.info('requesting {}'.format(CHECK_ACCESSIBLE_API_URL))
if CHECK_ACCESSIBLE_API_URL:
logger.info('requesting {}'.format(CHECK_ACCESSIBLE_API_URL))
response = requests.get(CHECK_ACCESSIBLE_API_URL)
else:
url = 'http://{}/api/repositories/'.format(
url = 'http://{}/200/'.format(
request.META.get('HTTP_HOST'))
logger.info('requesting to {}'.format(url))
response = requests.get(url)
Expand Down
1 change: 0 additions & 1 deletion bothub/health/tests.py

This file was deleted.

4 changes: 4 additions & 0 deletions bothub/health/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ def ping(request):
content=content,
content_type='text/plain',
status=status_code)


def r200(request):
return HttpResponse()
2 changes: 2 additions & 0 deletions bothub/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from bothub.api.routers import router as bothub_api_routers
from bothub.health.views import ping
from bothub.health.views import r200
from bothub.common.views import download_bot_data


Expand All @@ -14,6 +15,7 @@
path('docs/', include_docs_urls(title='API Documentation')),
path('admin/', admin.site.urls),
path('ping/', ping, name='ping'),
path('200/', r200, name='200'),
path(
'downloadbotdata/<int:update_id>/',
download_bot_data,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name='bothub-engine',
version='1.16.0',
version='1.16.1',
description='Bothub Engine',
packages=find_packages(),
install_requires=[
Expand Down

0 comments on commit cf49d84

Please sign in to comment.