aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fuzzycat/__main__.py5
-rw-r--r--fuzzycat/verify.py5
2 files changed, 5 insertions, 5 deletions
diff --git a/fuzzycat/__main__.py b/fuzzycat/__main__.py
index 70ed1ab..b2c8e60 100644
--- a/fuzzycat/__main__.py
+++ b/fuzzycat/__main__.py
@@ -44,8 +44,8 @@ def run_cluster(args):
tmpdir=args.tmpdir,
key_denylist=key_denylist,
prefix=args.prefix)
- stats = cluster.run()
- logger.debug(json.dumps(dict(stats)))
+ cluster.run()
+ logger.debug(json.dumps(dict(cluster.counter)))
def run_verify(args):
@@ -62,6 +62,7 @@ if __name__ == '__main__':
level=logging.DEBUG,
format='%(asctime)s.%(msecs)03d %(levelname)s %(module)s - %(funcName)s: %(message)s',
datefmt='%Y-%m-%d %H:%M:%S')
+
parser = argparse.ArgumentParser(prog='fuzzycat',
description=__doc__,
usage='%(prog)s command [options]',
diff --git a/fuzzycat/verify.py b/fuzzycat/verify.py
index e7b397f..a40c0d9 100644
--- a/fuzzycat/verify.py
+++ b/fuzzycat/verify.py
@@ -99,9 +99,9 @@ class GroupVerifier:
max_cluster_size: int = 10,
verbose=True):
self.iterable: collections.abc.Iterable = iterable
- self.max_cluster_size: int = 10
- self.counter = collections.Counter()
+ self.max_cluster_size: int = max_cluster_size
self.verbose = verbose
+ self.counter = collections.Counter()
def run(self):
for i, line in enumerate(self.iterable):
@@ -133,7 +133,6 @@ class GroupVerifier:
"https://fatcat.wiki/release/{}".format(b["ident"]), result, reason)
self.counter["total"] = sum(v for _, v in self.counter.items())
- print(json.dumps(dict(self.counter)), file=sys.stderr)
def compare(a, b):