Skip to content

Commit

Permalink
Fix bug in artifact creation when refreshing stations via prefect
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogsilva committed Aug 21, 2024
1 parent 729f03c commit ac53233
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arpav_ppcv/prefect/flows/observations.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ def refresh_stations(
print("No new stations found.")
prefect.artifacts.create_table_artifact(
key="stations-created",
table=[{"id": s.id, "code": s.code, "name": s.name} for s in created],
table=[
{"id": str(s.id), "code": s.code, "name": s.name} for s in created
],
description=f"# Created {len(created)} stations",
)
else:
Expand Down

0 comments on commit ac53233

Please sign in to comment.