From 786cd2d7baf9ebd57d5dcf2fa00286605e716a81 Mon Sep 17 00:00:00 2001 From: Naman Chauhan Date: Fri, 6 Nov 2020 23:28:38 +0530 Subject: [PATCH] update API responses --- app/api/search.py | 3 +-- app/api/tv_shows.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/api/search.py b/app/api/search.py index 402a131..2fb9fe3 100644 --- a/app/api/search.py +++ b/app/api/search.py @@ -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 }) diff --git a/app/api/tv_shows.py b/app/api/tv_shows.py index 7ecc10a..1ca0315 100644 --- a/app/api/tv_shows.py +++ b/app/api/tv_shows.py @@ -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() })