Show
Ignore:
Timestamp:
04/18/03 10:34:51 (21 years ago)
Author:
jalet
Message:

Minor fix.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/repykota

    r946 r949  
    2323# 
    2424# $Log$ 
     25# Revision 1.30  2003/04/18 08:34:51  jalet 
     26# Minor fix. 
     27# 
    2528# Revision 1.29  2003/04/18 08:29:30  jalet 
    2629# Minor bug fix 
     
    243246            else : 
    244247                reached = (((softlimit is not None) and (pagecounter >= softlimit) and "+") or "-") + "Q" 
    245             strbalance = ("%5.2f" % (balance or 0.0))[:10] 
    246             strlifetimepaid = ("%6.2f" % (lifetimepaid or 0.0))[:10] 
     248            balance = balance or 0.0     
     249            lifetimepaid = lifetimepaid or 0.0 
     250            strbalance = ("%5.2f" % balance)[:10] 
     251            strlifetimepaid = ("%6.2f" % lifetimepaid)[:10] 
    247252            print "%-9.9s %s %7i %7s %7s %10s %-10.10s %8i %10s" % (name, reached, pagecounter, str(softlimit), str(hardlimit), strbalance, str(datelimit)[:10], lifepagecounter, strlifetimepaid) 
    248253            return (lifepagecounter, lifetimepaid)