Added Enpoint for movAvg
parent
a571c8c40f
commit
af1c2301a9
|
@ -82,3 +82,12 @@ def region_capacities_data(id_1: int, id_2: int):
|
||||||
capacities = etl_rcc.region_capacities_comparison(id_1, id_2)
|
capacities = etl_rcc.region_capacities_comparison(id_1, id_2)
|
||||||
return capacities
|
return capacities
|
||||||
|
|
||||||
|
@app.get("/region/{id}/movingAverage/{startDate}")
|
||||||
|
def region_capacities_data(id: int, startDate: str):
|
||||||
|
result = etl_rmA.region_movingAverage(id, startDate)
|
||||||
|
return result
|
||||||
|
|
||||||
|
@app.get("/region/{id}/properties/capacities")
|
||||||
|
def region_property_capacities_data(id: int):
|
||||||
|
capacities = etl_rpc.region_properties_capacities(id)
|
||||||
|
return capacities
|
||||||
|
|
Loading…
Reference in New Issue