Changeset 39:1c05c2acebc9 in stamper for stamper/stamper.py
- Timestamp:
- Aug 12, 2014, 6:47:13 PM (10 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
stamper/stamper.py
r38 r39 222 222 worktime = self.worktime(stamp['start'], stamp['end']) 223 223 details[start_day].append( 224 ' ->%(worktime)s %(customer)s %(action)s' % {224 '%(worktime)s %(customer)s %(action)s' % { 225 225 'worktime': str(timedelta(seconds=worktime)), 226 226 'customer': customer, … … 318 318 for line in details[day]: 319 319 print(line) 320 print(' Total: %(total)s' % {'total': totals[day]}) 320 customer_day_totals = [] 321 for tc in total_customer[day]: 322 tc_total = str(timedelta(seconds=total_customer[day][tc])) 323 customer_day_totals.append(tc+': '+tc_total) 324 print(', '.join(customer_day_totals)) 325 if len(customer_day_totals) > 1: 326 # if there are multiple customers in the report, show the 327 # daily totals 328 print('daily total: %(total)s' % {'total': totals[day]}) 321 329 print '-'*79 322 330
Note:
See TracChangeset
for help on using the changeset viewer.