Skip to content

Commit

Permalink
Support datetime parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
frafra committed Aug 16, 2024
1 parent a87cefb commit 384aa25
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/nvdb/vegobjekter.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ def query(
if bbox:
params["kartutsnitt"] = ",".join(map(str, bbox))

if datetime_:
if ".." in datetime_:
raise Exception("does not support interval")
else:
params["tidspunkt"] = datetime_

if offset > 0:
pagination_params = params.copy()
pagination_params.update(
Expand Down

0 comments on commit 384aa25

Please sign in to comment.