Skip to content
Snippets Groups Projects
Commit 61550376 authored by Diccion, Kaeren C (UG - Computer Science)'s avatar Diccion, Kaeren C (UG - Computer Science)
Browse files

Update showtimes.py

parent 8ab8deda
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,11 @@ def showtimes_record(date): ...@@ -32,7 +32,11 @@ def showtimes_record(date):
if date not in showtimes: if date not in showtimes:
raise NotFound raise NotFound
print(showtimes[date]) 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__": if __name__ == "__main__":
app.run(port=5002, debug=True) app.run(port=5002, debug=True)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment