[webapps/foss-public-alert-server] foss_public_alert_server/alertHandler: fix LU-Alert id key

apple cuckoo <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit a70b98169f922c85b7ec8a6cf8632931d41260dd by apple cuckoo.
Committed on 29/07/2026 at 21:08.
Pushed by vkrause into branch 'master'.

fix LU-Alert id key

M  +1    -1    foss_public_alert_server/alertHandler/LUAlert_parser.py

https://invent.kde.org/webapps/foss-public-alert-server/-/commit/a70b98169f922c85b7ec8a6cf8632931d41260dd

diff --git a/foss_public_alert_server/alertHandler/LUAlert_parser.py b/foss_public_alert_server/alertHandler/LUAlert_parser.py
index bed2a9903..b8ff2afe2 100644
--- a/foss_public_alert_server/alertHandler/LUAlert_parser.py
+++ b/foss_public_alert_server/alertHandler/LUAlert_parser.py
@@ -20,7 +20,7 @@ class LUAlertParser(AbstractCAPParser):
         response: dict = requests.get(self.feed_source.cap_alert_feed, timeout=10).json()
         for alerts in response:
             try:
-                cap_ident = alerts['identifier']
+                cap_ident = alerts['_id']
                 sent_time = datetime.datetime.utcfromtimestamp(alerts['sent'] / 1000)
                 if len(Alert.objects.filter(source_id=self.feed_source.source_id, alert_id=cap_ident, issue_time=sent_time)) == 1:
                     self.record_unchanged_alert(cap_ident)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.