claude-memory/graph/solutions/added-default-ordering-to-batstats-get-list-endpoint-1c36a6.md
Cal Corum b140d4d82a migrate: 313 memories from MemoryGraph
- 313 new markdown files created
- 30 relationships embedded
- 313 entries indexed
- State initialized with usage data
2026-02-13 11:11:48 -06:00

13 lines
540 B
Markdown

---
id: 1c36a640-3d2d-4d85-8e65-a67aa6ea24de
type: solution
title: "Added default ordering to batstats GET list endpoint"
tags: [paper-dynasty, postgres-migration, database-order]
importance: 0.6
confidence: 0.8
created: "2026-02-01T01:31:41.148961+00:00"
updated: "2026-02-01T01:31:41.148961+00:00"
---
Added .order_by(BattingStat.id) to the BattingStat.select() query in /app/routers_v2/batstats.py at line 75. This ensures consistent row ordering for PostgreSQL migration. The ordering is applied after joins to Card and Player tables.