15 lines
558 B
Python
15 lines
558 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, self.status, self.punch)
|
|
|
|
def __repr__(self):
|
|
return '<Attendance>: {} : {} ({}, {})'.format(self.user_id, self.timestamp,self.status, self.punch)
|