Changeset 69:522b15adbbcd in stamper for stamper/stamper.py


Ignore:
Timestamp:
Feb 8, 2018, 9:37:25 PM (7 years ago)
Author:
Borja Lopez <borja@…>
Branch:
default
Phase:
public
Message:

Ensure the daily totals per customer have double digits in the hours value
when showing verbose details of the stamps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stamper/stamper.py

    r67 r69  
    284284                        # remove the seconds part from the string representation
    285285                        tc_total = ':'.join(tc_total.split(':')[:-1])
     286                        # ensure hours show double digits
     287                        tc_total = tc_total.zfill(5)
    286288                    customer_day_totals.append(tc+': '+tc_total)
    287289                print(', '.join(customer_day_totals))
Note: See TracChangeset for help on using the changeset viewer.