Skip to content

Commit

Permalink
update API responses
Browse files Browse the repository at this point in the history
  • Loading branch information
chauhannaman98 committed Nov 6, 2020
1 parent 7706d77 commit 786cd2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions app/api/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ def get(self):
docs = 'name'

return jsonify({
'status': True,
'date': str(date.today().strftime("%b-%d-%Y")),
'success': True,
'docs': 'https://github.com/chauhannaman98/IMDb-API#search-by-{}'.format(docs),
'search-results': response
})
3 changes: 1 addition & 2 deletions app/api/tv_shows.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
class Top250(Resource):
def get(self):
return jsonify({
'status': True,
'date': str(date.today().strftime("%b-%d-%Y")),
'success': True,
'top250': tvShowsTop250.getTop250Shows()
})

0 comments on commit 786cd2d

Please sign in to comment.