Skip to content

Commit

Permalink
fix sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Jul 17, 2023
1 parent f689be9 commit a6d593c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/app/graphql.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ async def evaluations(self, info: Info,
filter_eval["score_percent"]["$gt"] = minPercent
evaluations = db["evaluations"].aggregate([
{'$match': filter_eval},
{'$sort': { 'createdAt': 1 }}
{'$sort': { 'created_at': -1 }},
{'$limit': 1000}
# {'$group': {'_id':''}}
], allowDiskUse=True)
eval_list = []
Expand Down

0 comments on commit a6d593c

Please sign in to comment.