Changeset 19:3fe3553bab17 in stamper
- Timestamp:
- Jul 22, 2014, 7:21:02 PM (10 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
stamper/stamper.py
r13 r19 4 4 from datetime import datetime, timedelta 5 5 from os.path import expanduser, exists 6 from collections import OrderedDict 6 7 7 8 … … 105 106 106 107 def details(self): 107 details = {}108 totals = {}108 details = OrderedDict() 109 totals = OrderedDict() 109 110 for stamp in self.stamps: 110 111 if stamp['customer']: … … 128 129 129 130 def details_by_customer(self, customer): 130 details = {}131 totals = {}131 details = OrderedDict() 132 totals = OrderedDict() 132 133 for stamp in self.stamps: 133 134 if stamp['customer'] == customer:
Note:
See TracChangeset
for help on using the changeset viewer.