Skip to content

Commit

Permalink
feat: Add URI to exported csv
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsobspinto committed May 2, 2024
1 parent 56f3542 commit da043f4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend/composer/services/export_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ def get_sentence_number(cs: ConnectivityStatement, row: Row):
return cs.sentence.id


def get_statement_uri(cs: ConnectivityStatement, row: Row):
return cs.reference_uri


def get_nlp_id(cs: ConnectivityStatement, row: Row):
return cs.export_id

Expand Down Expand Up @@ -191,6 +195,7 @@ def generate_csv_attributes_mapping() -> Dict[str, Callable]:
"Review notes": get_review_notes,
"Proposed action": get_proposed_action,
"Added to SCKAN (time stamp)": get_added_to_sckan_timestamp,
'URI': get_statement_uri,
}
exportable_tags = Tag.objects.filter(exportable=True)
for tag in exportable_tags:
Expand Down

0 comments on commit da043f4

Please sign in to comment.