From 03ed6578651096e54fc079080ae90cd506ef1419 Mon Sep 17 00:00:00 2001 From: ykptke Date: Wed, 6 Mar 2019 09:57:03 +0300 Subject: [PATCH] changed card_str pack format fixes #32 --- zk/base.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zk/base.py b/zk/base.py index 969b3c3..f105070 100644 --- a/zk/base.py +++ b/zk/base.py @@ -889,7 +889,7 @@ class ZK(object): raise ZKErrorResponse("Can't pack user") else: name_pad = name.encode(self.encoding, errors='ignore').ljust(24, b'\x00')[:24] - card_str = pack('i', int(card))[:4] + card_str = pack('