EOX GitLab Instance
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
View Server 2
harvester
Commits
efa211a4
Commit
efa211a4
authored
Dec 10, 2021
by
Fabian Schindler
Browse files
Due to strange yaml behaviors begin/end times can be strings
parent
16a9bfa4
Changes
1
Hide whitespace changes
Inline
Side-by-side
harvester/endpoint/opensearch.py
View file @
efa211a4
...
...
@@ -190,10 +190,20 @@ class OpenSearchQuery(Query):
url
=
urls
[
mimetype
][
"url"
]
queryables
=
urls
[
mimetype
][
"params"
]
if
isinstance
(
self
.
time_begin
,
str
):
time_begin
=
self
.
time_begin
else
:
time_begin
=
self
.
time_begin
.
isoformat
()
if
isinstance
(
self
.
time_end
,
str
):
time_end
=
self
.
time_end
else
:
time_end
=
self
.
time_end
.
isoformat
()
mapping
=
{
"{geo:box}"
:
self
.
bbox
,
"{time:start}"
:
self
.
time_begin
.
isoformat
()
,
"{time:end}"
:
self
.
time_end
.
isoformat
()
,
"{time:start}"
:
time_begin
,
"{time:end}"
:
time_end
,
"{count}"
:
int
(
next
(
param
[
"maxInclusive"
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment