Updated the test and tested with local ztk
This commit is contained in:
@@ -1569,6 +1569,7 @@ class ZK(object):
|
||||
record_size = total_size/self.records
|
||||
if self.verbose: print ("record_size is ", record_size)
|
||||
attendance_data = attendance_data[4:]
|
||||
|
||||
if record_size == 8:
|
||||
while len(attendance_data) >= 8:
|
||||
uid, status, timestamp, punch = unpack('HB4sB', attendance_data.ljust(8, b'\x00')[:8])
|
||||
|
||||
Reference in New Issue
Block a user