Skip to content

Commit

Permalink
fix disable logic
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Jan 26, 2020
1 parent a66cc0e commit 660fcfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dvc/repo/add.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def add(repo, targets, recursive=False, no_commit=False, fname=None):
stages,
desc="Processing",
unit="file",
disable=len(stages) == 1,
disable=True if len(stages) == 1 else None,
):

if not no_commit:
Expand Down Expand Up @@ -94,7 +94,7 @@ def _create_stages(repo, targets, fname, pbar=None):
for out in Tqdm(
targets,
desc="Creating stages",
disable=len(targets) < LARGE_DIR_SIZE,
disable=True if len(targets) < LARGE_DIR_SIZE else None,
unit="file",
):
stage = Stage.create(repo, outs=[out], add=True, fname=fname)
Expand Down

0 comments on commit 660fcfd

Please sign in to comment.