Skip to content

Commit

Permalink
add special handling for stash_id_endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
gitgiggety committed Nov 14, 2023
1 parent 8876c96 commit 566f5ac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources/lib/criterion_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ def parse_criterion(criterion):
filter.update(value)
elif isinstance(value, list):
filter['value'] = list(map(lambda v: v['id'], value))
elif 'value' in criterion:
elif isinstance(value, dict) and not value.keys() - ['endpoint', 'stashID']:
filter['endpoint'] = value.get('endpoint')
filter['stash_id'] = value.get('stashID')
else:
filter['value'] = value

return filter

0 comments on commit 566f5ac

Please sign in to comment.