Skip to content

Commit

Permalink
Handle format issue with cleanup script
Browse files Browse the repository at this point in the history
Seems like HNY is storing dates in a different form from python iso.
`ValueError: Invalid isoformat string: '2024-11-07T06:30:00Z'`
  • Loading branch information
yariv-notion authored Nov 11, 2024
1 parent a0df108 commit 12654a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/hny_dataset_cleanup_tool/hny-column-cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def list_columns_last_written_before(dataset, api_key, date):
[
(column['id'], column['key_name'])
for column in all_columns
if datetime.fromisoformat(column['last_written']).date() < date
if datetime.fromisoformat(column['last_written'].replace("Z", "+00:00")).date() < date
]
)

Expand Down

0 comments on commit 12654a5

Please sign in to comment.