Skip to content

Commit

Permalink
fix issue when not datetime col
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Mar 15, 2023
1 parent 82691b8 commit 489f024
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tipg/dbmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,7 @@ def extent(self) -> Optional[Extent]:
"crs": "http://www.opengis.net/def/crs/OGC/1.3/CRS84",
}

if cols := self.datetime_columns:
cols = [col for col in cols if col.mindt or col.maxdt]

if cols := [col for col in self.datetime_columns if col.mindt or col.maxdt]:
intervals = []
if len(cols) == 1:
if cols[0].mindt or cols[0].maxdt:
Expand Down

0 comments on commit 489f024

Please sign in to comment.