Skip to content

Commit

Permalink
fix sort
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Aug 24, 2024
1 parent 34a8058 commit fd6179b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ async def index(
)
elif reviewed:
rows = await pg.fetch(
"""select * from patch where deleted_at is NULL and state != $1 order by updated_at""",
"""select * from patch where deleted_at is NULL and state != $1 order by updated_at desc""",
PatchState.Pending,
)
else:
Expand All @@ -156,7 +156,7 @@ async def index(
)
elif reviewed:
rows = await pg.fetch(
"""select * from episode_patch where deleted_at is NULL and state != $1 order by updated_at""",
"""select * from episode_patch where deleted_at is NULL and state != $1 order by updated_at desc""",
PatchState.Pending,
)
else:
Expand Down

0 comments on commit fd6179b

Please sign in to comment.