Skip to content

Commit

Permalink
Merge pull request #81 from dag-hammarskjold-library/jb/80
Browse files Browse the repository at this point in the history
syntax fix
  • Loading branch information
aaronhelton authored Mar 13, 2024
2 parents af98862 + f168160 commit 4be1325
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 4be1325

Please sign in to comment.