Changeset 2664
- Timestamp:
- 02/11/06 11:27:04 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/dumper.py
r2622 r2664 169 169 ("jobprice", float), 170 170 ("jobsizebytes", int), 171 ("precomputedjobsize", int), 172 ("precomputedjobprice", float), 171 173 ] 172 174 keys = [ k for k in ("username", "printername", "hostname", "billingcode") if k in extractonly.keys() ] … … 198 200 else : 199 201 for k in totals.keys() : 200 totals[k]["value"] += totals[k]["convert"](entry[fieldnumber[k]] )202 totals[k]["value"] += totals[k]["convert"](entry[fieldnumber[k]] or 0.0) 201 203 for k in keys : 202 204 prevkeys[k] = entry[fieldnumber[k]]