Skip to content

Commit

Permalink
syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
J. Bukhari authored and J. Bukhari committed Mar 13, 2024
1 parent af98862 commit f168160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlx_dl/scripts/sync/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def get_records(args, log=None, queue=None):
qids = [x['record_id'] for x in queue.find({'type': args.type})]
print(f'Taking {len(qids)} from queue')
q_args, q_kwargs = records.query_params
records = cls.from_query({'$or': [{'_id': {'$in': list(qids)}}, q_args[0]]}, sort=(['updated', ASC]))
records = cls.from_query({'$or': [{'_id': {'$in': list(qids)}}, q_args[0]]}, sort=[('updated', ASC)])

return records

Expand Down

0 comments on commit f168160

Please sign in to comment.