Commit 46fa2b87 authored by BODERE's avatar BODERE
Browse files

fix: finalize atom

parent 3b1a90f4
Pipeline #6314 passed with stage
in 2 minutes and 28 seconds
......@@ -53,7 +53,7 @@ class OpensearchResponseEntry(BaseModel):
class OpensearchResponseHeader(BaseModel):
id: str
title: str
updated: datetime = datetime.now()
updated: datetime = datetime.utcnow()
total_results: int = 0
start_index: int = 0
items_per_page: int = 0
......
......@@ -11,6 +11,7 @@
<title>{{response.header.title}}</title>
<id>{{response.header.id}}</id>
<opensearch:updated>{{response.header.updated.strftime('%Y-%m-%dT%H:%M:%SZ')}}</opensearch:updated>
<opensearch:totalResults>{{response.header.total_results}}</opensearch:totalResults>
<opensearch:startIndex>{{response.header.start_index}}</opensearch:startIndex>
<opensearch:itemsPerPage>{{response.header.items_per_page}}</opensearch:itemsPerPage>
......@@ -25,7 +26,7 @@
<entry>
<title>{{entry.title}}</title>
<id>{{entry.id}}</id>
<updated>{{entry.updated}}</updated>
<updated>{{entry.updated.strftime('%Y-%m-%dT%H:%M:%SZ')}}</updated>
{% if entry.summary %}<summary type="text">Granule metadata for {{entry.summary}}</summary>{% endif %}
{% if entry.dc_date %}<dc:date>{{entry.dc_date}}</dc:date>{% endif %}
{% if entry.geobox %}<georss:box>{{entry.geobox}}</georss:box>{% endif %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment