1
0
Fork 0
mirror of https://github.com/YunoHost/apps.git synced 2024-09-03 20:06:07 +02:00

dash/store: fix rss feed for apps removed - ofc their manifest aint in the catalog anymore (#2343)

This commit is contained in:
Alexandre Aubin 2024-05-15 14:21:49 +02:00 committed by GitHub
parent ade317043f
commit 1d5b20f583
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,14 +15,14 @@
{%- for date, news in news_per_date.items() %} {%- for date, news in news_per_date.items() %}
{%- for status in ("added", "repaired", "broke", "removed") %} {%- for status in ("added", "repaired", "broke", "removed") %}
{%- for app, url in news[status] %} {%- for app, url in news[status] %}
{% set manifest = catalog["apps"][app]["manifest"] %} {% set manifest = catalog["apps"].get(app, {}).get("manifest", {}) %}
<item> <item>
<title>[{{ status|capitalize }}] {{ manifest['name'] }}</title> <title>[{{ status|capitalize }}] {% if manifest %}{{ manifest['name'] }}{% else %}{{ app }}{% endif %}</title>
<link>{{ url_for('app_info', app_id=app, _external=True) }}</link> <link>{{ url_for('app_info', app_id=app, _external=True) }}</link>
<guid isPermaLink="false">{{ app }}#{{ date|format_datetime("%Y%m%d") }}</guid> <guid isPermaLink="false">{{ app }}#{{ date|format_datetime("%Y%m%d") }}</guid>
<pubDate>{{ date|format_datetime("%a, %d %b %Y %H:%M:%S +0000") }}</pubDate> <pubDate>{{ date|format_datetime("%a, %d %b %Y %H:%M:%S +0000") }}</pubDate>
<description>{{ manifest["description"].get("en") }}</description> <description>{{ manifest.get("description", {}).get("en") }}</description>
<content:encoded>{{ manifest["description"].get("en") }}</content:encoded> <content:encoded>{{ manifest.get("description", {}).get("en") }}</content:encoded>
</item> </item>
{% endfor -%} {% endfor -%}
{% endfor -%} {% endfor -%}