mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
set up postgres class
This commit is contained in:
parent
2afccf944e
commit
9faba4af42
2 changed files with 14 additions and 1 deletions
5
backend/categorisation/categorisation_postgres.py
Normal file
5
backend/categorisation/categorisation_postgres.py
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
from backend.app.db.connection import db_session
|
||||
|
||||
|
||||
class CategorisationPostgres:
|
||||
pass
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue