Skip to content

Commit

Permalink
Fix iquest printf parameter and filter
Browse files Browse the repository at this point in the history
  • Loading branch information
kjsanger committed Nov 1, 2024
1 parent f697050 commit 5500a99
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/npg_irods/ont.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ def find_run_collections(
args = []
if zone is not None:
args.extend(["-z", shlex.quote(zone)])
args.append("%s/%s")
args.append("%s")

query = (
"select COLL_NAME where "
Expand All @@ -461,7 +461,14 @@ def find_run_collections(
f"COLL_CREATE_TIME <= '{int(until.timestamp()) :>011}'"
)

return [Collection(p) for p in iquest(*args, query).splitlines()]
# iquest mixes logging and data in its output
ignore = f"Zone is {zone}" if zone is not None else "Zone is"

return [
Collection(p)
for p in iquest(*args, query).splitlines()
if not p.strip().startswith(ignore)
]


def tag_index_from_id(tag_identifier: str) -> int:
Expand Down

0 comments on commit 5500a99

Please sign in to comment.