1
0
mirror of https://github.com/x-hw/amazing-qr.git synced 2025-07-15 01:24:37 +02:00

correct details

This commit is contained in:
sylnsfar
2016-09-07 01:49:00 +08:00
parent ad3aefa846
commit a830a83675
2 changed files with 2 additions and 3 deletions

View File

@ -1,5 +1,5 @@
# QR-Code
*update: add an **exe** version at https://github.com/sylnsfar/qrcode_win
* update: add an **exe** version - [myqr.exe](https://github.com/sylnsfar/qrcode_win)

View File

@ -42,8 +42,7 @@ def encode(ver, ecl, data_codewords):
en = ecc_num_per_block[ver-1][lindex[ecl]]
ecc = []
for dc in data_codewords:
test = get_ecc(dc, en)
ecc.append(test)
ecc.append(get_ecc(dc, en))
return ecc
def get_ecc(dc, ecc_num):