bugfix unnecessary parentheses broke api

main
Giò Diani 2025-01-13 19:22:54 +01:00
parent 3d7d5bbbe3
commit 18a672a5de
1 changed files with 2 additions and 3 deletions

View File

@ -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}")