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 dc0c664 commit a071485
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/app/graphql.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ async def evaluations(self, info: Info,
filter_eval["score_percent"]["$gt"] = minPercent
evaluations = db["evaluations"].aggregate([
{'$match': filter_eval},
{ '$sort': { 'createdAt': -1 } }
{'$sort': { 'createdAt': -1 }}
# {'$group': {'_id':''}}
])
], { "allowDiskUse" : True })
eval_list = []
async for eval in evaluations:
# GraphqlEvaluation.from_pydantic(EvaluationModel(**eval))
Expand Down

0 comments on commit a071485

Please sign in to comment.