Skip to content

Commit

Permalink
Fixed --silent option
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Mar 27, 2020
1 parent a7f58e9 commit 302ea29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pocket_to_sqlite/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def fetch(db_path, auth, all, silent):
"id": 1,
"since": since
}, replace=True, pk="id"))
if all or last_since is None:
if (all or last_since is None) and not silent:
total_items = utils.fetch_stats(auth)["count_list"]
with click.progressbar(fetch, length=total_items) as bar:
utils.save_items(bar, db)
Expand Down

0 comments on commit 302ea29

Please sign in to comment.