From 4af34679642a70289f6c3e968d2988c56c11fedf Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Fri, 4 Dec 2026 10:50:35 +0100 Subject: [PATCH] Explain the "why" --- src/velofy/db/addresses.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/velofy/db/addresses.py b/src/velofy/db/addresses.py index eab1034..9e5fc2d 100644 --- a/src/velofy/db/addresses.py +++ b/src/velofy/db/addresses.py @@ -27,6 +27,7 @@ class Address(meta.Base): primary_key=True, autoincrement=False, # because the IDs come from the original data ) + # Duplicate entries of a place point to the earliest one (see `.is_primary`) primary_id: orm.Mapped[int] = orm.mapped_column( sa.Integer, nullable=False,