From 1d5b20f583e7fac56dbb377a9b96fc0376445c89 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com> Date: Wed, 15 May 2024 14:21:49 +0200 Subject: [PATCH] dash/store: fix rss feed for apps removed - ofc their manifest aint in the catalog anymore (#2343) --- store/templates/news_rss.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/store/templates/news_rss.xml b/store/templates/news_rss.xml index eba3657b..9d060640 100644 --- a/store/templates/news_rss.xml +++ b/store/templates/news_rss.xml @@ -15,14 +15,14 @@ {%- for date, news in news_per_date.items() %} {%- for status in ("added", "repaired", "broke", "removed") %} {%- for app, url in news[status] %} - {% set manifest = catalog["apps"][app]["manifest"] %} + {% set manifest = catalog["apps"].get(app, {}).get("manifest", {}) %} - [{{ status|capitalize }}] {{ manifest['name'] }} + [{{ status|capitalize }}] {% if manifest %}{{ manifest['name'] }}{% else %}{{ app }}{% endif %} {{ url_for('app_info', app_id=app, _external=True) }} {{ app }}#{{ date|format_datetime("%Y%m%d") }} {{ date|format_datetime("%a, %d %b %Y %H:%M:%S +0000") }} - {{ manifest["description"].get("en") }} - {{ manifest["description"].get("en") }} + {{ manifest.get("description", {}).get("en") }} + {{ manifest.get("description", {}).get("en") }} {% endfor -%} {% endfor -%}