From d6b2d01e2c2f8d0d949ac9e1f1cf76538718e950 Mon Sep 17 00:00:00 2001 From: MarekWo Date: Sun, 22 Mar 2026 21:25:24 +0100 Subject: [PATCH] fix(paths): use correct type=2 for repeater contacts Type 1 is COM (companion), type 2 is REP (repeater). Co-Authored-By: Claude Opus 4.6 --- app/database.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/database.py b/app/database.py index 1e46361..280abb4 100644 --- a/app/database.py +++ b/app/database.py @@ -883,14 +883,14 @@ class Database: return bool(row['no_auto_flood']) if row and row['no_auto_flood'] else False def get_repeater_contacts(self) -> List[Dict]: - """Get all repeater contacts (type=1) from DB, including ignored ones.""" + """Get all repeater contacts (type=2) from DB, including ignored ones.""" with self._connect() as conn: rows = conn.execute( """SELECT c.public_key, c.name, c.last_advert, c.adv_lat, c.adv_lon, CASE WHEN ic.public_key IS NOT NULL THEN 1 ELSE 0 END AS is_ignored FROM contacts c LEFT JOIN ignored_contacts ic ON c.public_key = ic.public_key - WHERE c.type = 1 + WHERE c.type = 2 ORDER BY c.name ASC""" ).fetchall() return [dict(r) for r in rows]