cleanup commit

main
mmaurostoffel 2025-01-05 13:19:43 +01:00
parent 818d6fb5ec
commit c68e6f54bd
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
import data import data
import polars as pl import polars as pl
from data import etl_property_capacities as etl_pc from data import etl_property_capacities as etl_pc
from data import etl_region_capacities as etl_rc
from fastapi import FastAPI, Response from fastapi import FastAPI, Response
d = data.load() d = data.load()
@ -46,7 +47,7 @@ def property_base_data(id: int):
@app.get("/region/{id}/capacities") @app.get("/region/{id}/capacities")
def region_capacities_data(id: int): def region_capacities_data(id: int):
capacities = etl_pc.region_capacities(id) capacities = etl_rc.region_capacities(id)
return capacities return capacities

View File

@ -1,4 +1,4 @@
from etl.src import data import data
import polars as pl import polars as pl
from io import StringIO from io import StringIO
import numpy as np import numpy as np