Fix 500 error when char_index contains None key from NULL ROM names

Co-authored-by: gantoine <3247106+gantoine@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-05-29 11:23:55 +00:00
committed by GitHub
parent 10bcd12183
commit 54dc059e15

View File

@@ -955,6 +955,7 @@ class DBRomsHandler(DBBaseHandler):
session.query(
subquery.c.letter, func.min(subquery.c.position - 1).label("position")
)
.filter(subquery.c.letter.isnot(None))
.group_by(subquery.c.letter)
.order_by(subquery.c.letter)
.all()