mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-29 16:10:07 +00:00
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:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user