From 7d5efc76b81bc0d42f03b3a2283846524cccb165 Mon Sep 17 00:00:00 2001 From: spark Date: Wed, 21 Oct 2026 20:18:49 +0100 Subject: [PATCH] Clear wrong face names without re-scoring every game. Naming each game again on startup walks every person and stalls the photo analysis. The wrong names are removed; the next read of that game uses the roster. --- apps/api/src/faces/service.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/api/src/faces/service.ts b/apps/api/src/faces/service.ts index cedd706..361f5ac 100644 --- a/apps/api/src/faces/service.ts +++ b/apps/api/src/faces/service.ts @@ -125,7 +125,8 @@ export class FaceService { (err) => this.deps.log.warn({ err }, "faces: cross-sport suggestions not checked"), ); // A name from outside a known game (made when a weak face was compared with the whole organization). - void dropOffRosterSuggestions(this.deps.db, (eventId) => this.refreshSuggestions(eventId)).then( + // Cleared only. Naming the game again here walks every person of every event and stalls photo analysis. + void dropOffRosterSuggestions(this.deps.db).then( (n) => void (n && this.deps.log.warn({ groups: n }, "faces: suggestions from outside the game taken away")), (err) => this.deps.log.warn({ err }, "faces: roster suggestions not checked"), ); @@ -1121,7 +1122,7 @@ export async function dropCrossSportSuggestions(db: Db): Promise { /** * Suggestions of someone who is not on the game's roster (a weak face compared with the whole organization) - * taken away; names confirmed by a person stay. Each such game is named again from its roster only. + * taken away; names confirmed by a person stay. The game is named again the next time its photos are read. * Returns how many suggestions were cleared. */ export async function dropOffRosterSuggestions(db: Db, refresh?: (eventId: string) => Promise): Promise { -- 2.47.3