Skip to content

Commit

Permalink
debug...
Browse files Browse the repository at this point in the history
  • Loading branch information
nmassey001 committed Jan 9, 2025
1 parent c894b8f commit d6f5c94
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions nlds_processors/catalog/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,6 @@ def get_holding(
)
print("!!!HOLDING!!!", holding_id, holding_q.count())

# search label filtering - for when the user supplies a holding label
elif label:
if is_regex(label):
holding_q = holding_q.filter(Holding.label.regexp_match(label))
else:
holding_q = holding_q.filter(Holding.label == label)
print("!!!LABEL!!!", label, holding_q.count())

# transaction id filtering - for when a large upload has been split into
# multiple uploads
elif transaction_id:
Expand All @@ -104,6 +96,14 @@ def get_holding(
Transaction.transaction_id == transaction_id,
)
print("!!!TRANSID!!!", transaction_id, holding_q.count())

# search label filtering - for when the user supplies a holding label
elif label:
if is_regex(label):
holding_q = holding_q.filter(Holding.label.regexp_match(label))
else:
holding_q = holding_q.filter(Holding.label == label)
print("!!!LABEL!!!", label, holding_q.count())

# filter the query on any tags
if tag:
Expand Down

0 comments on commit d6f5c94

Please sign in to comment.