paper-dynasty-database/app
Cal Corum 985a6ed2b0 Add default ORDER BY id to BaseModel.select() for PostgreSQL compatibility
PostgreSQL does not guarantee row order without ORDER BY, unlike SQLite
which implicitly returned rows by rowid. This caused bugs where queries
returned results in unexpected order (e.g., get_team_by_owner returning
gauntlet team instead of main team).

Override select() in BaseModel to add default ordering by id. Explicit
.order_by() calls will override this default.

Also mark legacy db_engine.py as deprecated.
2026-01-31 16:06:44 -06:00
..
routers_v2 Fix missed timestamp issues in stats POST handlers 2026-01-30 22:45:15 -06:00
__init__.py Initial Commit with /current 2023-09-13 14:44:26 -05:00
card_creation.py Update card_creation.py 2024-02-24 21:36:44 -06:00
db_engine.py Add default ORDER BY id to BaseModel.select() for PostgreSQL compatibility 2026-01-31 16:06:44 -06:00
db_helpers.py Fix PostgreSQL upsert column names and CSV null handling 2026-01-30 17:28:40 -06:00
dependencies.py Support for Exhibition games & Swagger updates 2024-07-11 15:07:23 -05:00
main.py Clean up root_validators 2024-11-03 01:46:40 -05:00
player_scouting.py Update player_scouting.py 2023-09-24 19:00:21 -05:00