Skip to content

Commit

Permalink
Create the UNFCCC event with a title of the event type (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
diversemix authored May 31, 2023
1 parent 250de29 commit 740450a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/core/ingestion/unfccc/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ def create_event_from_row(db: Session, row: UNFCCCDocumentIngestRow):
if row.document_role.upper() == "SUMMARY":
return

event_type = _get_type_from_role(row.document_role.upper())
event = FamilyEvent(
import_id=_create_event_id(row.cpr_document_id),
title="UNFCCC Submission",
title=event_type,
date=row.date,
event_type_name=_get_type_from_role(row.document_role.upper()),
event_type_name=event_type,
family_import_id=row.cpr_family_id,
family_document_import_id=row.cpr_document_id,
status=EventStatus.OK,
Expand Down

0 comments on commit 740450a

Please sign in to comment.