From d4149dd58a5a0ae0fa3b3dd1c3a2abf27a1f7ba3 Mon Sep 17 00:00:00 2001 From: "Krishnan, Arjun (PG/T - Computer Science)" <ak01928@surrey.ac.uk> Date: Fri, 26 Mar 2021 13:40:43 +0000 Subject: [PATCH] Update showtimes.py --- showtimes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/showtimes.py b/showtimes.py index 52a8a6a..323e1ae 100644 --- a/showtimes.py +++ b/showtimes.py @@ -3,8 +3,10 @@ from werkzeug.exceptions import NotFound import json import os -movies_service = "http://127.0.0.1:5001/movies/{}" + app = Flask(__name__) +movies_service = "http://127.0.0.1:5001/movies/{}" +showtimes_db = f"{os.getcwd()}/database/showtimes.json" with open("{}/database/showtimes.json".format(os.getcwd()), "r") as f: showtimes = json.load(f) -- GitLab