Changeset 18:f8c2304728ba in stamper


Ignore:
Timestamp:
Jul 22, 2014, 7:11:13 PM (7 years ago)
Author:
Borja Lopez <borja@…>
Branch:
default
Phase:
public
Message:

Set proper start time for an entry when it did not have a stamp start
line in the workstamps.txt file. For example:

2014-07-01 08:20 start
2014-07-01 09:30 customer task A
2014-07-01 10:30 customer task B
2014-07-01 11:30 customer task C

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bin/stamp2json

    r17 r18  
    5252                if len(info_items) > 1:
    5353                    action = info_items[1].lstrip('- ')
     54                # if the previous line was not a start line, took the previous
     55                # line end time as start time
     56                if end_time is not None:
     57                    start_time = end_time
    5458                end_time = time
    5559
Note: See TracChangeset for help on using the changeset viewer.