paper-dynasty-database/app/routers_v2
Cal Corum f3b0b90860 Fix PostgreSQL timestamp handling in gauntletruns.py
- Convert milliseconds to datetime for GET filters (created_after/before, ended_after/before)
- Fix is_active filter to use is_null() instead of comparing to 0
- Fix PATCH to use datetime.now() instead of int timestamps
- Fix POST to convert timestamps and use None for nullable ended field
- Update Pydantic model defaults to None instead of int

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 22:39:45 -06:00
..
__init__.py Initial Commit with /current 2023-09-13 14:44:26 -05:00
admin.py Support for Exhibition games & Swagger updates 2024-07-11 15:07:23 -05:00
awards.py Support for Exhibition games & Swagger updates 2024-07-11 15:07:23 -05:00
batstats.py Support for Exhibition games & Swagger updates 2024-07-11 15:07:23 -05:00
battingcardratings.py PostgreSQL migration: Complete code preparation phase 2026-01-25 23:05:54 -06:00
battingcards.py PostgreSQL migration: Complete code preparation phase 2026-01-25 23:05:54 -06:00
cardpositions.py PostgreSQL migration: Complete code preparation phase 2026-01-25 23:05:54 -06:00
cards.py Add production deployment config and fix stringified list parsing 2026-01-30 14:03:07 -06:00
cardsets.py Added search endpoints 2025-10-08 14:21:44 -05:00
current.py Support for Exhibition games & Swagger updates 2024-07-11 15:07:23 -05:00
decisions.py Add missing GROUP BY to decisions/rest endpoint for PostgreSQL 2026-01-26 22:01:38 -06:00
events.py Import cleanup 2023-09-14 22:11:31 -05:00
gamerewards.py Import cleanup 2023-09-14 22:11:31 -05:00
gauntletrewards.py PostgreSQL migration: Complete code preparation phase 2026-01-25 23:05:54 -06:00
gauntletruns.py Fix PostgreSQL timestamp handling in gauntletruns.py 2026-01-30 22:39:45 -06:00
mlbplayers.py PostgreSQL migration: Complete code preparation phase 2026-01-25 23:05:54 -06:00
notifications.py Fix PostgreSQL timestamp conversion for GET filters 2026-01-30 22:38:06 -06:00
packs.py Fix PostgreSQL timestamp conversion for POST/PATCH endpoints 2026-01-30 22:37:31 -06:00
packtypes.py Added cardsets, packs, packtypes, players 2023-09-13 16:19:56 -05:00
paperdex.py Fix PostgreSQL timestamp conversion for GET filters 2026-01-30 22:38:06 -06:00
pitchingcardratings.py PostgreSQL migration: Complete code preparation phase 2026-01-25 23:05:54 -06:00
pitchingcards.py PostgreSQL migration: Complete code preparation phase 2026-01-25 23:05:54 -06:00
pitstats.py Pre-Season 6 Updates 2023-10-19 23:16:47 -05:00
players.py PostgreSQL migration: Complete code preparation phase 2026-01-25 23:05:54 -06:00
rarity.py Added teams & rarity 2023-09-13 15:12:44 -05:00
results.py Add battingcards & bugfixes 2023-09-15 00:01:30 -05:00
rewards.py Fix PostgreSQL timestamp conversion for POST/PATCH endpoints 2026-01-30 22:37:31 -06:00
scouting.py Scouting tables added to db 2023-09-22 01:29:35 -05:00
stratgame.py Clean up root_validators 2024-11-03 01:46:40 -05:00
stratplays.py Fix PostgreSQL upsert column names and CSV null handling 2026-01-30 17:28:40 -06:00
teams.py PostgreSQL migration: Complete code preparation phase 2026-01-25 23:05:54 -06:00