pyztk/zk/attendance.py
2018-06-11 18:28:52 -04:00

15 lines
462 B
Python

# -*- coding: utf-8 -*-
class Attendance(object):
def __init__(self, uid, user_id, timestamp, status, punch=0):
self.uid = uid
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)