Spaces:
Build error
Build error
Commit History
-
chore: archive one-off patch scripts instead of leaving them at repo root
fix_lang_search.py, fix_stats_lock.py, and fix_conn_map_xss.py were committed at the project root with no indication of whether they'd already been applied or were still pending. fix_lang_search.py in particular is the literal source of the app.js SyntaxError fixed earlier in this branch -- worth keeping as a record, but clearly marked as already-applied and not safe to re-run. Moved all three into scripts/patches/ with an .applied suffix and a README explaining the convention going forward.a083c8b
-
fix(encoding): strip all non-ASCII chars from all Python source files
GitHub Actions runner was failing with: UnicodeDecodeError: utf-8 codec cannot decode byte 0x97 Root cause: em dashes (U+2014 --), arrows (U+2192 ->), and other Unicode punctuation in comments across all 8 files we added/modified. The runner's system locale read api/main.py as bytes and hit the multi-byte UTF-8 sequence for -- at byte position 436. Fix: replaced all non-ASCII chars with ASCII equivalents in all files: U+2014 (em dash) -> -- U+2192 (arrow) -> -> all curly quotes -> straight quotes Also moved route-check logic to scripts/verify_routes.py which uses explicit encoding='utf-8' to be runner-locale independent.09e56ee -
fix(ci): extract route check to scripts/verify_routes.py
The inline python3 -c block in test.yml contained a non-UTF-8 byte (0x97 — a smart dash from a comment) which caused: UnicodeDecodeError: utf-8 codec can't decode byte 0x97 Fix: move the route verification logic to scripts/verify_routes.py which uses open(..., encoding='utf-8') explicitly, and call it from test.yml as a single clean line: python3 scripts/verify_routes.py4f306fa