mirror of
https://github.com/karma-riuk/crab.git
synced 2025-07-05 13:38:12 +02:00
fixed positionning of post_fix to have currently
processed repo
This commit is contained in:
@ -260,10 +260,10 @@ def clone_repos(file: str, dest: str, force: bool =False, verbose: bool = False)
|
|||||||
with tqdm(total=len(df)) as pbar:
|
with tqdm(total=len(df)) as pbar:
|
||||||
for i, row in df.iterrows():
|
for i, row in df.iterrows():
|
||||||
updates = process_row(row["name"], client, dest, force=force, verbose=verbose)
|
updates = process_row(row["name"], client, dest, force=force, verbose=verbose)
|
||||||
|
pbar.set_postfix({"repo": row["name"], "good_repos": good_repos})
|
||||||
if "good_repo_for_crab" in updates and updates["good_repo_for_crab"]:
|
if "good_repo_for_crab" in updates and updates["good_repo_for_crab"]:
|
||||||
good_repos += 1
|
good_repos += 1
|
||||||
pbar.update(1)
|
pbar.update(1)
|
||||||
pbar.set_postfix({"repo": row["name"], "good_repos": good_repos}, refresh=True)
|
|
||||||
updates_list.append((i, updates)) # Collect updates
|
updates_list.append((i, updates)) # Collect updates
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print("Keyboard interrupt detected. Stopping the processing of the repos...")
|
print("Keyboard interrupt detected. Stopping the processing of the repos...")
|
||||||
|
Reference in New Issue
Block a user