From ada83c547b9e11df10f20a2560ac909a9a1e6a6b Mon Sep 17 00:00:00 2001 From: Alexander 'Leo' Bergolth Date: Wed, 14 Mar 2018 16:13:05 +0100 Subject: [PATCH] fix typo in qrcode ecval lookup --- elaphe/qrcode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elaphe/qrcode.py b/elaphe/qrcode.py index 9835115..c8d274d 100644 --- a/elaphe/qrcode.py +++ b/elaphe/qrcode.py @@ -264,7 +264,7 @@ def qrcode_metric(msgbits, encoding=None, format_='full', eclevel=None, version= n_msgbits = len(mid)+cclen+n_msgbits # logging.debug('enc=%s fmt=%s eclv=%s ver=%s' % (encoding, format_, eclevel, version)) - ecval = 'LHQM'.index(eclevel) + ecval = 'LMQH'.index(eclevel) if version: version = str(version) for frmt, vers, size, asp2, asp3, nmod, ecws_list, ecb_list in QRCODE_METRIC: