From a4405075f284f70615be2c2672f394b566e85c39 Mon Sep 17 00:00:00 2001 From: Arturo Hernandez Date: Wed, 18 Apr 2018 20:22:03 -0400 Subject: [PATCH] minor fixes --- zk/base.py | 11 +++++++---- zk/user.py | 6 +++--- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/zk/base.py b/zk/base.py index 113b497..9ab7a01 100644 --- a/zk/base.py +++ b/zk/base.py @@ -533,8 +533,10 @@ class ZK(object): return True else: raise ZKErrorResponse("Cant set user") + def save_user_template(self, user, fingers=[]): """ save user and template """ + #TODO: grabado global # armar paquete de huellas if isinstance(fingers, Finger): fingers =[Finger] @@ -544,9 +546,8 @@ class ZK(object): tstart = 0 for finger in fingers: tfp = finger.repack_only() - table += pack(": {}'.format(self.name) + return ': [uid:{}, name:{} user_id:{}]'.format(self.uid, self.name, self.user_id) def __repr__(self): return ': {}'.format(self.name)