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

Update showtimes.py

parent f0469226
No related branches found
No related tags found
No related merge requests found
from services import root_dir, nice_json
#from services import root_dir, nice_json
from flask import Flask
from werkzeug.exceptions import NotFound
import json
......@@ -35,7 +35,7 @@ def showtimes_record(date):
print(showtimes[date])
result = []
for movie_id in showtimes[date]:
req = requests.get(movies_service.format(movie_id))
req = requests.get("http://127.0.0.1:5001/movies/{}".format(movie_id))
result.append(req.json()["Title"])
return json.dumps(result)
......
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