From 763026a36628acfc6976e270219ada11dcdd9a82 Mon Sep 17 00:00:00 2001 From: KylieStarzz <33515915+KylieStarzz@users.noreply.github.com> Date: Sun, 4 Mar 2018 20:21:55 +0630 Subject: [PATCH 1/3] change user data --- tools/import_zip_codes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/import_zip_codes.js b/tools/import_zip_codes.js index 4a87274..9fda12b 100644 --- a/tools/import_zip_codes.js +++ b/tools/import_zip_codes.js @@ -22,9 +22,9 @@ var ZIP_FILE = settings["d"]; var CBP_FILE = settings["e"]; var config = { - user: 'postgres', + user: 'user', database: 'transit', - password: 'nostrand', + password: '123456789', host: 'localhost', port: 5432, max: 10, From 33f7ad656e669f833fa1348003be69f74f25cb01 Mon Sep 17 00:00:00 2001 From: KylieStarzz <33515915+KylieStarzz@users.noreply.github.com> Date: Sun, 4 Mar 2018 20:24:48 +0630 Subject: [PATCH 2/3] fix errors in certain places --- EnmodalSessions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EnmodalSessions.py b/EnmodalSessions.py index 3eaabc5..9fbe5f0 100644 --- a/EnmodalSessions.py +++ b/EnmodalSessions.py @@ -66,7 +66,7 @@ def auth_by_key(self, h): public_session = self.get_by_public_key(h) if public_session is not None: public_session.keep_alive() - a = EnmodalSessionAuthentication(public_session, False) + a = EnmodalSessionAuthentication(public_session, True) return a private_session = self.get_by_private_key(h) if private_session is not None: From 8c86454e807ba508557dc9c18ad07ef120e84073 Mon Sep 17 00:00:00 2001 From: KylieStarzz <33515915+KylieStarzz@users.noreply.github.com> Date: Sun, 4 Mar 2018 20:28:15 +0630 Subject: [PATCH 3/3] Tweaks --- EnmodalCore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EnmodalCore.py b/EnmodalCore.py index 3005608..22cbc5a 100644 --- a/EnmodalCore.py +++ b/EnmodalCore.py @@ -408,7 +408,7 @@ def route_edge_add(): line_to_use.add_edge(edge) return edge.to_json() else: - return json.dumps({"error": "Stops Not Found"}) + return json.dumps({"error": "No Stops"}) return json.dumps({"error": "Invalid ID"})