From 215ff82d65d59a7b5aaaef151f3e8157b678ae97 Mon Sep 17 00:00:00 2001 From: relikd Date: Mon, 12 Oct 2020 12:13:31 +0200 Subject: [PATCH] Fix dot-graph min 1 --- src/lib_graphs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib_graphs.py b/src/lib_graphs.py index 1a4fe11..473f6bc 100755 --- a/src/lib_graphs.py +++ b/src/lib_graphs.py @@ -29,7 +29,7 @@ def dotgraph(arr): ''' Needs list of (title, count, attr_str) tuples ''' def D(title, count, attr_str=''): return '

{1}

{2}'.format( - attr_str, title, '' * count) + attr_str, title, '' * max(1, count)) return '
' + ''.join([D(*x) for x in arr]) + '
'