set up postgres class

This commit is contained in:
Daniel Roth 2026-02-11 17:22:00 +00:00
parent 2afccf944e
commit 9faba4af42
2 changed files with 14 additions and 1 deletions

View file

@ -0,0 +1,5 @@
from backend.app.db.connection import db_session
class CategorisationPostgres:
pass

View file

@ -1,2 +1,10 @@
def process_portfolio() -> None:
def process_portfolio(portfolio_id: int) -> None:
# Get all plans (including scenarios) for all properties in the portfolio
# For each property, get all compliant plans
# For each property, find the cheapest compliant plan
# For each property, set is_default for cheapest compliant plan
# If no compliant plans, set it to the cheapest plan
pass