Paper Dynasty Database - PostgreSQL database service
Go to file
Cal Corum dbc24d0365 fix: ensure count is never null in GET /refractor/cards (#182)
Peewee's .count() on a complex multi-join query can return None when the
result wrapper yields an empty cursor for a 0-row result set.  Guard with
`or 0` so the response contract (count is always an integer) is upheld.

Note: tier values outside 0–4 already return 422 via FastAPI's ge/le
constraints on the tier parameter, so the reproduced scenario
(tier=99 → count: null) is also covered by validation.

Closes #182

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-06 06:28:30 +00:00
.gitea/workflows ci: switch buildx cache from registry to local volume 2026-03-24 00:15:38 -05:00
.githooks fix: address review feedback (#181) 2026-04-04 23:03:06 -05:00
app fix: ensure count is never null in GET /refractor/cards (#182) 2026-04-06 06:28:30 +00:00
docs Remove deprecated legacy files and reorganize documentation 2026-02-05 13:34:09 -06:00
migrations chore: remove unused RefractorTierBoost and RefractorCosmetic tables 2026-04-05 22:27:26 -05:00
scripts Add production deployment config and fix stringified list parsing 2026-01-30 14:03:07 -06:00
storage/templates fix: refractor card art post-merge fixes — cache bypass, template guards, dev server 2026-04-04 12:37:30 -05:00
tests chore: remove unused RefractorTierBoost and RefractorCosmetic tables 2026-04-05 22:27:26 -05:00
.dockerignore Add .dockerignore 2026-01-30 22:47:07 -06:00
.env fix: correct inverted TESTING env check and leading space in .env (#23) 2026-03-03 21:43:54 +00:00
.env.example CLAUDE: Add .env.example with comprehensive configuration guide 2025-11-07 11:53:23 -06:00
.gitignore fix: visual tuning from live preview — diamond position, borders, corners, header z-index 2026-04-04 11:20:05 -05:00
CLAUDE.md docs: fix dev PostgreSQL container/db/user in CLAUDE.md 2026-04-06 06:28:30 +00:00
compose.production.yml Add production deployment config and fix stringified list parsing 2026-01-30 14:03:07 -06:00
docker-compose.yml CLAUDE: Comment out API service - prevents race condition in db_engine.py 2025-11-07 14:07:13 -06:00
Dockerfile fix: correct COPY path and add CMD in Dockerfile 2026-03-17 20:09:04 +00:00
LICENSE Initial commit 2023-02-19 21:38:07 -06:00
pyproject.toml feat: Track Catalog API endpoints (WP-06) (#71) 2026-03-12 20:40:38 -05:00
requirements.txt chore: pin all Python dependency versions in requirements.txt (#64) 2026-03-10 01:35:31 -05:00
ruff.toml fix: address PR review findings 2026-03-17 21:38:12 -05:00
run-local.sh fix: refractor card art post-merge fixes — cache bypass, template guards, dev server 2026-04-04 12:37:30 -05:00
VERSION Bump version to 1.5.5 2026-02-04 08:48:12 -06:00