mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +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(
|
uprn_lookup = UprnLookupS3(
|
||||||
bucket="", key=""
|
bucket="", key=""
|
||||||
) # TODO: replace with postgres implementation
|
) # TODO: replace with postgres implementation
|
||||||
|
|
||||||
dummy_stream = BytesIO(b"")
|
dummy_stream = BytesIO(b"")
|
||||||
|
|
||||||
source_key = event.get("source_key", "unknown-source")
|
source_key = event.get("source_key", "unknown-source")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue