Skip to content

Commit

Permalink
Track number queried without results in progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanFauble committed Feb 19, 2025
1 parent 31627f6 commit f63e92f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion synapseclient/models/mixins/table_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1951,7 +1951,7 @@ async def main():
client = Synapse.get_client(synapse_client=synapse_client)

rows_to_update: List[PartialRow] = []
chunk_list = []
chunk_list: List[DataFrame] = []
for i in range(0, len(values), rows_per_query):
chunk_list.append(values[i : i + rows_per_query])

Expand Down Expand Up @@ -2143,6 +2143,7 @@ async def main():
progress_bar.update(len(chunk))
elif dry_run:
progress_bar.update(len(rows_to_update))
progress_bar.update(len(individual_chunk.index) - len(rows_to_update))

rows_to_update: List[PartialRow] = []
progress_bar.update(progress_bar.total - progress_bar.n)
Expand Down

0 comments on commit f63e92f

Please sign in to comment.