diff --git a/allianceauth/templates/allianceauth/admin-status/overview.html b/allianceauth/templates/allianceauth/admin-status/overview.html
index 2c8e685f..867322b6 100644
--- a/allianceauth/templates/allianceauth/admin-status/overview.html
+++ b/allianceauth/templates/allianceauth/admin-status/overview.html
@@ -57,19 +57,13 @@
{% for notif in application_notifications %}
-
- {% if 'open' in notif.state %}
- {% translate "Open" %}
- {% else %}
- {% translate "Closed" %}
- {% endif %}
+ {% translate "Open" %}
{{ notif.app_name }}
#{{ notif.iid }} {{ notif.title }}
{% endfor %}
-
{# TODO maybe add some disclaimer that those are managed by application devs? #}
-
diff --git a/allianceauth/templatetags/admin_status.py b/allianceauth/templatetags/admin_status.py
index 5747960a..320f2ed4 100644
--- a/allianceauth/templatetags/admin_status.py
+++ b/allianceauth/templatetags/admin_status.py
@@ -20,7 +20,7 @@ register = template.Library()
# cache timers
TAG_CACHE_TIME = 3600 # 1 hours
-NOTIFICATION_CACHE_TIME = 300 # 5 minutes
+NOTIFICATION_CACHE_TIME = 10 # 5 minutes
# timeout for all requests
REQUESTS_TIMEOUT = 5 # 5 seconds
# max pages to be fetched from gitlab
@@ -86,7 +86,7 @@ class AppAnnouncementHook:
"""
raw_list = _fetch_list_from_github(
f"https://api.github.com/repos/{self.repository_namespace}/issues"
- f"?labels={self.label}&state=all"
+ f"?labels={self.label}"
)
# Translates GitHub attributes to GitLab and filters out pull requests
clean_list = []
@@ -101,7 +101,7 @@ class AppAnnouncementHook:
"""Return the issues list for a GitLab repository"""
return _fetch_list_from_gitlab(
f"https://gitlab.com/api/v4/projects/{quote_plus(self.repository_namespace)}/issues"
- f"?labels={self.label}")
+ f"?labels={self.label}&state=opened")
@register.simple_tag()
def decimal_widthratio(this_value, max_value, max_width) -> str:
diff --git a/docs/development/custom/img/app_announcement_hook_example.png b/docs/development/custom/img/app_announcement_hook_example.png
index dab4766f..b57c6950 100755
Binary files a/docs/development/custom/img/app_announcement_hook_example.png and b/docs/development/custom/img/app_announcement_hook_example.png differ