From bace83dc3ae3e884d4d85f964a984e82dc8005eb Mon Sep 17 00:00:00 2001 From: coolneng Date: Sun, 14 Jun 2020 19:07:30 +0200 Subject: [PATCH] Overhaul visualization page and dependency cleanup --- app/data_request.py | 2 -- app/processing.py | 7 ++----- app/templates/visualization.html | 4 +++- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/app/data_request.py b/app/data_request.py index 60e477a..0479a50 100644 --- a/app/data_request.py +++ b/app/data_request.py @@ -1,5 +1,3 @@ -from json import dump - from requests import get from constants import URL diff --git a/app/processing.py b/app/processing.py index c44f6eb..29f0f8a 100644 --- a/app/processing.py +++ b/app/processing.py @@ -1,6 +1,3 @@ -from base64 import b64encode -from io import BytesIO - from app.preprocessing import create_dataframe, create_map @@ -13,5 +10,5 @@ def create_table(df) -> str: def process_data(dataset): df = create_dataframe(dataset) table = create_table(df) - map = create_map(df) - return table, map + create_map(df) + return table diff --git a/app/templates/visualization.html b/app/templates/visualization.html index c077d69..81fa254 100644 --- a/app/templates/visualization.html +++ b/app/templates/visualization.html @@ -3,7 +3,9 @@ {% block app_content %}

Dataset visualization

- + + {{ table|safe }} +

Back

{% endblock %}