Commit afbcc27f authored by BODERE's avatar BODERE
Browse files

fix: atom

parent 091ea022
...@@ -53,6 +53,7 @@ class OpensearchResponseEntry(BaseModel): ...@@ -53,6 +53,7 @@ class OpensearchResponseEntry(BaseModel):
class OpensearchResponseHeader(BaseModel): class OpensearchResponseHeader(BaseModel):
id: str id: str
title: str title: str
updated: datetime = datetime.now()
total_results: int = 0 total_results: int = 0
start_index: int = 0 start_index: int = 0
items_per_page: int = 0 items_per_page: int = 0
......
...@@ -26,9 +26,9 @@ ...@@ -26,9 +26,9 @@
<title>{{entry.title}}</title> <title>{{entry.title}}</title>
<id>{{entry.id}}</id> <id>{{entry.id}}</id>
<updated>{{entry.updated}}</updated> <updated>{{entry.updated}}</updated>
<summary type="text">Granule metadata for {{entry.summary}}</summary> {% if entry.summary %}<summary type="text">Granule metadata for {{entry.summary}}</summary>{% endif %}
<dc:date>{{entry.dc_date}}</dc:date> {% if entry.dc_date %}<dc:date>{{entry.dc_date}}</dc:date>{% endif %}
<georss:box>{{entry.geobox}}</georss:box> {% if entry.geobox %}<georss:box>{{entry.geobox}}</georss:box>{% endif %}
{% for link in entry.links -%} {% for link in entry.links -%}
<link rel= "enclosure" href="{{link.href}}" /> <link rel= "enclosure" href="{{link.href}}" />
{% endfor %} {% endfor %}
......
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