pyztk/zk/attendance.py

14 lines
422 B
Python
Raw Normal View History

2016-06-12 16:35:02 +07:00
# -*- coding: utf-8 -*-
class Attendance(object):
2017-12-28 23:01:12 +07:00
def __init__(self, uid, user_id, timestamp, status):
self.uid = uid
2016-06-12 16:35:02 +07:00
self.user_id = user_id
self.timestamp = timestamp
self.status = status
def __str__(self):
2018-04-30 21:25:43 +07:00
return '<Attendance>: {}:{}'.format(self.user_id, self.timestamp)
2016-06-12 16:35:02 +07:00
def __repr__(self):
2018-04-30 21:25:43 +07:00
return '<Attendance>: {}:{}'.format(self.user_id, self.timestamp)