From 54facc4085053cbb31d4eb712f91d6a715ab5e0b Mon Sep 17 00:00:00 2001 From: beuerle Date: Mon, 25 May 2020 13:59:40 +0200 Subject: [PATCH] fix statistics cmd; count papers w/ tag, not w/o --- pubs/commands/statistics_cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubs/commands/statistics_cmd.py b/pubs/commands/statistics_cmd.py index e3b6583..a606fa0 100644 --- a/pubs/commands/statistics_cmd.py +++ b/pubs/commands/statistics_cmd.py @@ -22,7 +22,7 @@ def command(conf, args): else: doc_count = sum([0 if p.docpath is None else 1 for p in papers]) tag_count = len(list(rp.get_tags())) - papers_with_tags = sum([0 if p.tags else 1 for p in papers]) + papers_with_tags = sum([1 if p.tags else 0 for p in papers]) ui.message(color.dye_out('Repository statistics:', 'bold')) ui.message('Total papers: {}, {} ({}) have a document attached'.format(