[Fix] hr_attendance: Fix the pylint warning
authorsbh (Open ERP) <sbh@tinyerp.com>
Fri, 8 Oct 2010 05:16:10 +0000 (10:46 +0530)
committersbh (Open ERP) <sbh@tinyerp.com>
Fri, 8 Oct 2010 05:16:10 +0000 (10:46 +0530)
bzr revid: sbh@tinyerp.com-20101008051610-glvci1rbuc5ytuyo

addons/hr_attendance/report/timesheet.py

index b084542..abedddd 100644 (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')]