Skip to content

Commit f822b42

Browse files
committed
more idiomatic string formatting
1 parent 60f51da commit f822b42

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

mp_api/client/core/client.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -591,9 +591,7 @@ def _query_resource(
591591
)
592592

593593
predicate = (
594-
" WHERE batch_id NOT IN (" # don't delete leading space
595-
+ controlled_batch_str
596-
+ ")"
594+
f"WHERE batch_id NOT IN ({controlled_batch_str})"
597595
if not has_gnome_access
598596
else ""
599597
)
@@ -617,7 +615,7 @@ def _query_resource(
617615
else None
618616
)
619617

620-
iterator = builder.execute("SELECT * FROM tbl" + predicate)
618+
iterator = builder.execute(f"SELECT * FROM tbl {predicate}")
621619

622620
file_options = ds.ParquetFileFormat().make_write_options(
623621
compression="zstd"

0 commit comments

Comments
 (0)