diff --git a/showtimes.py b/showtimes.py index f383502876706ea2eae88b0172e0221825b91964..3b2df9879dc838919fc03e8205da0686809f6fef 100644 --- a/showtimes.py +++ b/showtimes.py @@ -32,7 +32,11 @@ def showtimes_record(date): if date not in showtimes: raise NotFound print(showtimes[date]) - return json.dumps(showtimes[date]) + result = [] + for movie_id in showtimes[date]: + req = requests.get(movies_service.format(movie_id)) + result.append(req.json()["Title"]) + return json.dumps(result) if __name__ == "__main__": app.run(port=5002, debug=True)