pyztk/zk/attendance.py
Arturo Hernandez dbe494b258 restore Attendance compatibility...
simple uid is not very used with Attendance
(mostly all works with user_id, and not local uid)
so I'm pushing to optional argument as the original pyzk

as most users get direcctly all the records with `get_attendance()`, I think no body will notice...
2018-06-12 20:34:37 -04:00

15 lines
491 B
Python

# -*- coding: utf-8 -*-
class Attendance(object):
def __init__(self, user_id, timestamp, status, punch=0, uid=0):
self.uid = uid # not really used any more
self.user_id = user_id
self.timestamp = timestamp
self.status = status
self.punch = punch
def __str__(self):
return '<Attendance>: {} : {}'.format(self.user_id, self.timestamp)
def __repr__(self):
return '<Attendance>: {} : {}'.format(self.user_id, self.timestamp)