Skip to content

Commit

Permalink
Feature/pdct 1514 Update dfce helpers (#73)
Browse files Browse the repository at this point in the history
* Add FIXMEs

* Update logic for family published date

* Validate the taxonomy

* Bump to 3.8.24

* Try adding expression for published_date

* Try adding expression for published_date

* Fix metadata check

* Fix logic for checking datetime_event)name

* Return None if can't find datetime_event_name in event meta

* Remove type ignore

* Error handling

* Update pyproject.toml

* Update CODEOWNERS

* Update dfce_helpers.py
  • Loading branch information
katybaulch authored Oct 31, 2024
1 parent 3205c03 commit 654ce6a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions db_client/functions/dfce_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ def add_event(db: Session, family_import_id, family_document_import_id, e):
date=e["date"],
event_type_name=e["type"],
status=e["status"],
valid_metadata={
"event_type": [e["type"]],
"datetime_event_name": [
"Passed/Approved"
], # TODO Fix as part of PDCT-1622
},
)
)

Expand Down

0 comments on commit 654ce6a

Please sign in to comment.