mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
define condition trigger request object
This commit is contained in:
parent
da57392953
commit
06e1d53509
2 changed files with 7 additions and 0 deletions
6
backend/condition/condition_trigger_request.py
Normal file
6
backend/condition/condition_trigger_request.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class ConditionTriggerRequest(BaseModel):
|
||||
trigger_file_path: str # TODO: split into bucket/prefix?
|
||||
uprn_lookup_file_path: str # TODO: split into bucket/prefix?
|
||||
|
|
@ -14,6 +14,7 @@ def handler(event: Mapping[str, Any], context: Any) -> None:
|
|||
uprn_lookup = UprnLookupS3(
|
||||
bucket="", key=""
|
||||
) # TODO: replace with postgres implementation
|
||||
|
||||
dummy_stream = BytesIO(b"")
|
||||
|
||||
source_key = event.get("source_key", "unknown-source")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue