bugfix unnecessary parentheses broke api
parent
3d7d5bbbe3
commit
18a672a5de
|
@ -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_capacities_weekdays as etl_pcw
|
||||||
from data import etl_property_neighbours as etl_pn
|
from data import etl_property_neighbours as etl_pn
|
||||||
from data import etl_region_capacities as etl_rc
|
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_monthly as etl_rcm
|
||||||
from data import etl_region_capacities_weekdays as etl_rcw
|
from data import etl_region_capacities_weekdays as etl_rcw
|
||||||
from data import etl_region_movAverage as etl_rmA
|
from data import etl_region_movAverage as etl_rmA
|
||||||
from data import etl_region_properties_capacities as etl_rpc
|
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
|
from fastapi import FastAPI, Response
|
||||||
|
|
||||||
d = data.load()
|
d = data.load()
|
||||||
|
@ -81,7 +80,7 @@ def region_capacities_data(id: int):
|
||||||
|
|
||||||
@app.get("/region/{id}/capacities/monthly/{scrapeDate}")
|
@app.get("/region/{id}/capacities/monthly/{scrapeDate}")
|
||||||
def region_capacities_data(id: int, scrapeDate: str):
|
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
|
return capacities
|
||||||
|
|
||||||
@app.get("/region/{id}/capacities/weekdays/{scrapeDate}")
|
@app.get("/region/{id}/capacities/weekdays/{scrapeDate}")
|
||||||
|
|
Loading…
Reference in New Issue