Skip to content

Commit

Permalink
fixed default lexical entries sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
vmonakhov committed Oct 7, 2024
1 parent 20c29c7 commit 9d967d7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lingvodoc/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2070,11 +2070,13 @@ def graphene_track_multiple(
DBSession
.query(
Entity,
PublishingEntity)
PublishingEntity,
LexicalEntry.created_at)

.filter(
PublishingEntity.client_id == Entity.client_id,
PublishingEntity.object_id == Entity.object_id))
PublishingEntity.object_id == Entity.object_id,
LexicalEntry.id == Entity.parent_id))

# Get new entities from entities_before_custom_filtering

Expand Down Expand Up @@ -2126,10 +2128,8 @@ def graphene_track_multiple(
# Default sorting

old_entities_result = old_entities_result.order_by(
desc(Entity.parent_client_id),
desc(Entity.parent_object_id),
Entity.client_id,
Entity.object_id)
desc(LexicalEntry.created_at),
Entity.created_at)

return (
new_entities_result,
Expand Down

0 comments on commit 9d967d7

Please sign in to comment.