From a5bd889475b209f606c4f77c340c8c0e0d77d26e Mon Sep 17 00:00:00 2001 From: abhiraj963 Date: Sun, 7 Oct 2018 12:20:31 +0530 Subject: [PATCH] Corrected the code --- api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.py b/api.py index a3fcdf3..64d74ee 100644 --- a/api.py +++ b/api.py @@ -26,7 +26,7 @@ def random(): results=[] #empty list of results for book in books: - if book['id']==id: + if book['id']=!id: results.append(book) return jsonify(results)