mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
Merge pull request #414 from Hestia-Homes/main
updating default values for inclusions/exclusions
This commit is contained in:
commit
b0a5d5593a
2 changed files with 5 additions and 5 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
import boto3
|
import boto3
|
||||||
from fastapi import APIRouter, Depends, BackgroundTasks
|
from fastapi import APIRouter, Depends
|
||||||
from backend.app.dependencies import validate_token
|
from backend.app.dependencies import validate_token
|
||||||
from backend.app.plan.schemas import PlanTriggerRequest
|
from backend.app.plan.schemas import PlanTriggerRequest
|
||||||
from backend.app.config import get_settings
|
from backend.app.config import get_settings
|
||||||
|
|
@ -18,7 +18,7 @@ sqs_client = boto3.client("sqs")
|
||||||
|
|
||||||
|
|
||||||
@router.post("/trigger", status_code=202)
|
@router.post("/trigger", status_code=202)
|
||||||
async def trigger_plan_entrypoint(body: PlanTriggerRequest, background_tasks: BackgroundTasks):
|
async def trigger_plan_entrypoint(body: PlanTriggerRequest):
|
||||||
"""
|
"""
|
||||||
Entry point for triggering the plan engine via SQS.
|
Entry point for triggering the plan engine via SQS.
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
|
|
@ -80,11 +80,11 @@ class PlanTriggerRequest(BaseModel):
|
||||||
patches_file_path: Optional[str] = None
|
patches_file_path: Optional[str] = None
|
||||||
non_invasive_recommendations_file_path: Optional[str] = None
|
non_invasive_recommendations_file_path: Optional[str] = None
|
||||||
valuation_file_path: Optional[str] = None
|
valuation_file_path: Optional[str] = None
|
||||||
exclusions: Optional[List[InclusionOrExclusionItem]] = Field(default=None, min_length=1)
|
exclusions: Optional[List[InclusionOrExclusionItem]] = Field(default=None, min_length=0)
|
||||||
inclusions: Optional[List[InclusionOrExclusionItem]] = Field(default=None, min_length=1)
|
inclusions: Optional[List[InclusionOrExclusionItem]] = Field(default=None, min_length=0)
|
||||||
# This is a list of measures that we want to be included, if they are options
|
# This is a list of measures that we want to be included, if they are options
|
||||||
# Default to empty
|
# Default to empty
|
||||||
required_measures: Optional[List[InclusionOrExclusionItem]] = Field(default=[], min_length=1)
|
required_measures: Optional[List[InclusionOrExclusionItem]] = Field(default=[], min_length=0)
|
||||||
|
|
||||||
scenario_name: Optional[str] = ""
|
scenario_name: Optional[str] = ""
|
||||||
multi_plan: Optional[bool] = False
|
multi_plan: Optional[bool] = False
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue