From 2c24545e68755e31c56a9a9908b24069546ddc82 Mon Sep 17 00:00:00 2001 From: DJ2LS Date: Mon, 19 Feb 2024 10:53:44 +0100 Subject: [PATCH] possibly fixed repeating message --- modem/message_system_db_messages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modem/message_system_db_messages.py b/modem/message_system_db_messages.py index 255b8ab5..b670dccc 100644 --- a/modem/message_system_db_messages.py +++ b/modem/message_system_db_messages.py @@ -218,7 +218,7 @@ class DatabaseManagerMessages(DatabaseManager): # Query for messages with the specified callsign, 'failed' status, and fewer than 10 attempts messages = session.query(P2PMessage) \ - .filter(P2PMessage.origin_callsign == callsign) \ + .filter(P2PMessage.destination_callsign == callsign) \ .filter(P2PMessage.status_id == failed_status.id) \ .filter(P2PMessage.attempt < 10) \ .all()