Update wehago matching logic and exclude reports

This commit is contained in:
b17301 committed 2026-07-03 09:07:04 +09:00
1 parent a09190ecd3
commit da073ad6ef
62 files changed
+36940 -1554

No files matched your search

+2 -1
View File
@@ -395,9 +395,10 @@ def _latest_query_projection_signature(conn: sqlite3.Connection) -> str | None:
AND end_year = ?
AND signature LIKE ?
AND signature NOT LIKE '%|snapshot-recheck-promote|%'
AND signature NOT LIKE '%|db-reconciled-%'
GROUP BY signature
HAVING status_count >= 5
ORDER BY updated_at DESC
ORDER BY status_count DESC, updated_at DESC
LIMIT 1
""",
(TARGET_START_YEAR, TARGET_END_YEAR, f"{QUERY_PROJECTION_VERSION}|%"),