From 4446d5c2bd96e5ba4ba8abf11fc7b3bb34a04fee Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sun, 6 Oct 2019 12:02:17 +0200 Subject: stats: Use displayText in pretty stats as well --- lulua/stats.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lulua') diff --git a/lulua/stats.py b/lulua/stats.py index 6da7cc2..598a7cd 100644 --- a/lulua/stats.py +++ b/lulua/stats.py @@ -28,6 +28,7 @@ from .keyboard import defaultKeyboards from .writer import SkipEvent, Writer from .carpalx import Carpalx, models from .plot import letterfreq, triadfreq +from .util import displayText def updateDictOp (a, b, op): """ Update dict a by adding items from b using op """ @@ -188,7 +189,7 @@ def pretty (args): print ('combinations') combinationTotal = sum (stats['simple'].combinations.values ()) for k, v in sorted (stats['simple'].combinations.items (), key=itemgetter (1)): - t = layout.getText (k) + t = displayText (layout.getText (k)) print (f'{t:4s} {k} {v:10d} {v/combinationTotal*100:5.1f}%') print ('unknown') for k, v in sorted (stats['simple'].unknown.items (), key=itemgetter (1)): -- cgit v1.2.3