From ff7b4902c2f508af67723399c15dcd41227fd8d6 Mon Sep 17 00:00:00 2001 From: Arturo Hernandez Date: Thu, 5 Jul 2018 11:52:36 -0400 Subject: [PATCH] force int values on finger --- zk/finger.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zk/finger.py b/zk/finger.py index 2b38fd4..994cec9 100644 --- a/zk/finger.py +++ b/zk/finger.py @@ -4,9 +4,9 @@ import codecs class Finger(object): def __init__(self, uid, fid, valid, template): self.size = len(template) # template only - self.uid = uid - self.fid = fid - self.valid = valid + self.uid = int(uid) + self.fid = int(fid) + self.valid = int(valid) self.template = template #self.mark = str().encode("hex") self.mark = codecs.encode(template[:8], 'hex') + b'...' + codecs.encode(template[-8:], 'hex')