Skip to content

Comments

Fix three code bugs#2

Draft
AHAPX wants to merge 1 commit intomasterfrom
cursor/fix-three-code-bugs-gpt-5.1-codex-high-8251
Draft

Fix three code bugs#2
AHAPX wants to merge 1 commit intomasterfrom
cursor/fix-three-code-bugs-gpt-5.1-codex-high-8251

Conversation

@AHAPX
Copy link
Owner

@AHAPX AHAPX commented Nov 28, 2025

Fixes three bugs: chess engine move cache invalidation, unsafe Flask request argument parsing, and Flask blueprint naming incompatibility.

The chess engine's Figure.reset() method failed to clear cached moves, leading to stale legal move data. Request argument parsing now safely handles invalid JSON payloads by preferring request.get_json(silent=True). Flask blueprint names are now underscore-delimited to ensure compatibility with newer Flask versions that reject dots. Additionally, RestVerification error handling is improved for Python 3 compatibility, and a fallback for playhouse.test_utils.test_database is added for modern Peewee releases.


Open in Cursor Open in Web

Co-authored-by: durneviv <durneviv@gmail.com>
@cursor
Copy link

cursor bot commented Nov 28, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants