From 3b1873c2ff820d04fbd37eeb4ef0c8a4af4d8141 Mon Sep 17 00:00:00 2001 From: jwhaney Date: Fri, 21 Feb 2020 13:52:41 -0600 Subject: [PATCH] resolved broken historical endpoint due to not updating sql for materialized view --- database_management/compiled_historical_collection.sql | 1 + src/data_hub/data_hub/views.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/database_management/compiled_historical_collection.sql b/database_management/compiled_historical_collection.sql index a10761ac..aa2024a2 100644 --- a/database_management/compiled_historical_collection.sql +++ b/database_management/compiled_historical_collection.sql @@ -9,6 +9,7 @@ SELECT historical_collection.id as collection_id, historical_collection.collection, historical_collection.from_date, historical_collection.to_date as acquisition_date, + historical_collection.photo_index_only, historical_collection.public, historical_collection.fully_scanned, historical_collection.index_service_url, diff --git a/src/data_hub/data_hub/views.py b/src/data_hub/data_hub/views.py index cb58880e..f2601340 100644 --- a/src/data_hub/data_hub/views.py +++ b/src/data_hub/data_hub/views.py @@ -58,7 +58,7 @@ def page_not_found(request, exception): return response -def server_error(request): +def server_error(request, exception): q = random_rec() context = { 'status': 500,