[Fix] hr_attendance: Fix the pylint warning

bzr revid: sbh@tinyerp.com-20101008051610-glvci1rbuc5ytuyo
This commit is contained in:
sbh (Open ERP)
2010-10-08 10:46:10 +05:30
parent df2e505a3f
commit 05ed5b4531
-1
View File
@@ -83,7 +83,6 @@ class report_custom(report_rml):
dt = datetime.strptime(att['name'], '%Y-%m-%d %H:%M:%S')
if att['action'] == 'sign_out':
week_wh[ldt.date().weekday()] = week_wh.get(ldt.date().weekday(), 0) + ((dt - ldt).seconds/3600)
ldt = dt
# Week xml representation
week_repr = ['<week>', '<weekstart>%s</weekstart>' % monday.strftime('%Y-%m-%d'), '<weekend>%s</weekend>' % n_monday.strftime('%Y-%m-%d')]