From 18a672a5de2e3d894f2c7ae517b7d7998ecf8804 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gi=C3=B2=20Diani?= Date: Mon, 13 Jan 2025 19:22:54 +0100 Subject: [PATCH] bugfix unnecessary parentheses broke api --- etl/src/api/main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/etl/src/api/main.py b/etl/src/api/main.py index 4f99f50..9596419 100644 --- a/etl/src/api/main.py +++ b/etl/src/api/main.py @@ -5,12 +5,11 @@ from data import etl_property_capacities_monthly as etl_pcm from data import etl_property_capacities_weekdays as etl_pcw from data import etl_property_neighbours as etl_pn from data import etl_region_capacities as etl_rc +from data import etl_region_capacities_comparison as etl_rcc from data import etl_region_capacities_monthly as etl_rcm from data import etl_region_capacities_weekdays as etl_rcw from data import etl_region_movAverage as etl_rmA from data import etl_region_properties_capacities as etl_rpc -from data import etl_region_capacities_comparison as etl_rcc - from fastapi import FastAPI, Response d = data.load() @@ -81,7 +80,7 @@ def region_capacities_data(id: int): @app.get("/region/{id}/capacities/monthly/{scrapeDate}") def region_capacities_data(id: int, scrapeDate: str): - capacities = (etl_rcm.region_capacities_monthly(id, scrapeDate) + capacities = etl_rcm.region_capacities_monthly(id, scrapeDate) return capacities @app.get("/region/{id}/capacities/weekdays/{scrapeDate}")