force int values on finger
This commit is contained in:
parent
850bfe578f
commit
ff7b4902c2
@ -4,9 +4,9 @@ import codecs
|
|||||||
class Finger(object):
|
class Finger(object):
|
||||||
def __init__(self, uid, fid, valid, template):
|
def __init__(self, uid, fid, valid, template):
|
||||||
self.size = len(template) # template only
|
self.size = len(template) # template only
|
||||||
self.uid = uid
|
self.uid = int(uid)
|
||||||
self.fid = fid
|
self.fid = int(fid)
|
||||||
self.valid = valid
|
self.valid = int(valid)
|
||||||
self.template = template
|
self.template = template
|
||||||
#self.mark = str().encode("hex")
|
#self.mark = str().encode("hex")
|
||||||
self.mark = codecs.encode(template[:8], 'hex') + b'...' + codecs.encode(template[-8:], 'hex')
|
self.mark = codecs.encode(template[:8], 'hex') + b'...' + codecs.encode(template[-8:], 'hex')
|
||||||
|
Loading…
Reference in New Issue
Block a user