Changeset 19:3fe3553bab17 in stamper


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

Show the detailed times properly ordered

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stamper/stamper.py

    r13 r19  
    44from datetime import datetime, timedelta
    55from os.path import expanduser, exists
     6from collections import OrderedDict
    67
    78
     
    105106
    106107    def details(self):
    107         details = {}
    108         totals = {}
     108        details = OrderedDict()
     109        totals = OrderedDict()
    109110        for stamp in self.stamps:
    110111            if stamp['customer']:
     
    128129
    129130    def details_by_customer(self, customer):
    130         details = {}
    131         totals = {}
     131        details = OrderedDict()
     132        totals = OrderedDict()
    132133        for stamp in self.stamps:
    133134            if stamp['customer'] == customer:
Note: See TracChangeset for help on using the changeset viewer.