Skip to content

Commit

Permalink
fix another keyerror
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Škoda committed Sep 9, 2024
1 parent 6a39002 commit dfc402b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
History
=======

0.19.0 (2024-09-09)
-------------------

* fix possible KeyError: 'dt' with list_data

0.18.0 (2024-08-21)
-------------------

Expand Down
3 changes: 2 additions & 1 deletion lakeapi/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,8 @@ def list_data(

def partition_filter(partition: Dict[str, str]) -> bool:
return (
(
"dt" in partition
and (
start is None
or start.date() <= datetime.date.fromisoformat(partition["dt"])
)
Expand Down

0 comments on commit dfc402b

Please sign in to comment.