fix: Replace fragile locals() pattern in PATCH endpoints #11

Merged
cal merged 2 commits from fix/patch-endpoint-locals-bug into main 2026-02-12 15:37:11 +00:00

2 Commits

Author SHA1 Message Date
cal
e257a96a8a Update VERSION
All checks were successful
Build Docker Image / build (pull_request) Successful in 3m16s
2026-02-11 21:55:34 +00:00
Cal Corum
31b14ec709 fix: Replace fragile locals() pattern in PATCH endpoints with explicit field dicts
Some checks failed
Build Docker Image / build (pull_request) Failing after 15s
The teams PATCH endpoint included the `data` variable itself when
building the update dict via locals(), causing Peewee to fail with
"type object 'Team' has no attribute 'data'". The players endpoint
had the same pattern with a workaround that was order-dependent.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 15:54:39 -06:00