diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2019-10-06 12:02:17 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2019-10-06 12:02:17 +0200 |
commit | 4446d5c2bd96e5ba4ba8abf11fc7b3bb34a04fee (patch) | |
tree | 11218f1b994d3af04db24d19a69727be00a3630a | |
parent | 59f6f1d029d5cc0e5c6586469b09fe77c86dc0e7 (diff) | |
download | lulua-4446d5c2bd96e5ba4ba8abf11fc7b3bb34a04fee.tar.gz lulua-4446d5c2bd96e5ba4ba8abf11fc7b3bb34a04fee.tar.bz2 lulua-4446d5c2bd96e5ba4ba8abf11fc7b3bb34a04fee.zip |
stats: Use displayText in pretty stats as well
-rw-r--r-- | lulua/stats.py | 3 |
1 files changed, 2 insertions, 1 deletions
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)): |