spotters: logo coverage script (Wikidata logo/icon, multi-language infobox, website icon fallback), cheaper planes operator queries, refresh adds logos for new orgs
All checks were successful
Deploy production / deploy (push) Successful in 1m9s

This commit is contained in:
2026-10-25 13:54:27 +00:00
parent 7d6cee26a8
commit 5e4cd83748
8 changed files with 577 additions and 19 deletions

View File

@@ -666,7 +666,7 @@ async function main() {
await tx`update planes.makers set wikipedia = ${l?.article ?? null},
logo = ${l?.photo?.thumb ?? null}, logo_file = ${l?.photo?.file ?? null},
logo_license = ${l?.photo?.license ?? null}, logo_author = ${l?.photo?.author ?? null}
where slug = ${m.slug}`;
where slug = ${m.slug} and not (${!l?.photo} and logo like '/spotters/logos/%')`;
}
await tx`update planes.makers k set photo = (
select t.photo from planes.types t where t.maker_id = k.id and t.photo is not null