From c0c4072cfe5193ec00c82d85a3b013439ae33183 Mon Sep 17 00:00:00 2001 From: Adarsh Date: Thu, 6 Jul 2017 11:44:11 -0400 Subject: [PATCH 1/3] Update buiding search function in fetch data. --- blocnote/lib/fetch_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocnote/lib/fetch_data.py b/blocnote/lib/fetch_data.py index b04ad2a..1ce5018 100644 --- a/blocnote/lib/fetch_data.py +++ b/blocnote/lib/fetch_data.py @@ -18,7 +18,7 @@ def get_building_data(building_id): building: A dictionary containing all the relevant building data. """ cursor = connections['building_db'].cursor() - command = 'SELECT * FROM public.get_building(in_building_id := {})' + command = 'SELECT * FROM public.building_search(in_building_id := {})' cursor.execute(command.format(building_id)) columns = [col[0] for col in cursor.description] row = cursor.fetchone() -- GitLab From 09d21d22e173199a0c921ba3063c55ce039db3ea Mon Sep 17 00:00:00 2001 From: Adarsh Date: Thu, 6 Jul 2017 11:44:37 -0400 Subject: [PATCH 2/3] Update attribute name to street_address. --- .../apps/financialInputs/templates/financialInputs/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocnote/apps/financialInputs/templates/financialInputs/index.html b/blocnote/apps/financialInputs/templates/financialInputs/index.html index de8fe1b..3a2430c 100644 --- a/blocnote/apps/financialInputs/templates/financialInputs/index.html +++ b/blocnote/apps/financialInputs/templates/financialInputs/index.html @@ -8,7 +8,7 @@ Financial Inputs
- {{ building.address }} + {{ building.street_address }}
-- GitLab From fef63cc516e21381b725dca22951250cfd53ec00 Mon Sep 17 00:00:00 2001 From: Adarsh Date: Thu, 6 Jul 2017 11:44:48 -0400 Subject: [PATCH 3/3] Update attribute name to street_address. --- .../preliminaryFinance/templates/preliminaryFinance/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocnote/apps/preliminaryFinance/templates/preliminaryFinance/index.html b/blocnote/apps/preliminaryFinance/templates/preliminaryFinance/index.html index 4dd9c11..c09b81e 100644 --- a/blocnote/apps/preliminaryFinance/templates/preliminaryFinance/index.html +++ b/blocnote/apps/preliminaryFinance/templates/preliminaryFinance/index.html @@ -8,7 +8,7 @@ Preliminary Finance
- {{ building.address }} + {{ building.street_address }}
-- GitLab