fix(dawarich): name stays never read before reading unnamed ones again

Unnamed stays are now read again at the end of a run, from the budget the others left and at most 20 per window, so new stays get their names and a Dawarich without a geocoder is not asked about every stay on each run.
This commit is contained in:
Maurice
2026-11-23 15:42:09 +01:00
parent 5e8cc0b90a
commit 8349c5066b
4 changed files with 89 additions and 10 deletions
@@ -303,6 +303,11 @@ export class DawarichVisitSuggestionsRepository extends TrekRepository<DawarichV
);
}
/** A name found for a stay nobody has acted on yet; a stay accepted or dismissed meanwhile keeps its own. */
async renameNewVisit(id: number, name: string): Promise<void> {
await this.nativeUpdate({ id, state: 'new' }, { name });
}
/**
* DSY6 — `syncTripWindow`'s existing, accepted/dismissed branch: `UPDATE
* dawarich_visit_suggestions SET source_hash = ?, source_missing_at =