Skip to content

Commit fcc969d

Browse files
committed
Fix logical error in filtering
1 parent 12e20d9 commit fcc969d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

getBitstreams.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ def processItem(dsObject, args):
199199
bitstreams.raise_for_status() # ensure we notice bad responses
200200
bitstreams = bitstreams.json()
201201
for bitstream in bitstreams:
202-
if (args.formats and bitstream['format'] in args.formats or not args.formats
203-
and args.bundles and bitstream['bundleName'] in args.bundles or not args.bundles):
202+
if ((args.formats and bitstream['format'] in args.formats or not args.formats)
203+
and (args.bundles and bitstream['bundleName'] in args.bundles or not args.bundles)):
204204
if args.verbose: print(bitstream)
205205
sequenceId = str(bitstream['sequenceId'])
206206
fileName = bitstream['name']

0 commit comments

Comments
 (0)