pyztk/zk/attendance.py

15 lines
491 B
Python
Raw Normal View History

2016-06-12 16:35:02 +07:00
# -*- 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
2016-06-12 16:35:02 +07:00
self.user_id = user_id
self.timestamp = timestamp
self.status = status
2018-06-12 05:28:52 +07:00
self.punch = punch
2016-06-12 16:35:02 +07:00
def __str__(self):
2018-05-31 09:18:43 +07:00
return '<Attendance>: {} : {}'.format(self.user_id, self.timestamp)
2016-06-12 16:35:02 +07:00
def __repr__(self):
2018-05-31 09:18:43 +07:00
return '<Attendance>: {} : {}'.format(self.user_id, self.timestamp)