diff --git a/showtimes.py b/showtimes.py index eb8f2d9a15a1fe5293e5601fd4e7918b1c62572b..f6cc66b9dfa8fbdf1de8540ee7ea771ae818608b 100644 --- a/showtimes.py +++ b/showtimes.py @@ -1,4 +1,4 @@ -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)