Skip to content

Commit

Permalink
Postgres doesn't like collate by NOCASE. but it does it by default an…
Browse files Browse the repository at this point in the history
…yway so all good
  • Loading branch information
PartyWumpus authored and gbdlin committed Aug 8, 2024
1 parent e61d217 commit 8265022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin_store/database/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ async def search(
direction = desc

if sort_by == SortType.NAME:
statement = statement.order_by(direction(collate(Artifact.name, "NOCASE")))
statement = statement.order_by(direction(Artifact.name))
elif sort_by == SortType.DATE:
statement = statement.order_by(direction(Artifact.created))
elif sort_by == SortType.DOWNLOADS:
Expand Down

0 comments on commit 8265022

Please sign in to comment.