Commit 40a902a
| Repository | bojemoi |
| Branch | main |
| Author | Betty |
| Hash | 40a902a51ca49e676375e569f2b2f2b254af9d7f |
Description
scan_data from API can return “True”/“False” strings (old Valkey cache entries) which psycopg2 converts to Python bool → PostgreSQL rejects as wrong type. int(value or 0) handles all edge cases: bool strings, None, empty string.
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com