From 8d75de8069be2830962b42b8e093292d6e302b87 Mon Sep 17 00:00:00 2001
From: "Diccion, Kaeren C (UG - Computer Science)" <kd00450@surrey.ac.uk>
Date: Fri, 12 Mar 2021 14:15:08 +0000
Subject: [PATCH] Update showtimes.py

---
 showtimes.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/showtimes.py b/showtimes.py
index eb8f2d9..f6cc66b 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)
 
-- 
GitLab