From 7305f1f6e2d237fdfd53d8b8f353f87c88491bd6 Mon Sep 17 00:00:00 2001 From: richard Date: Sun, 23 Mar 2003 09:37:20 +0000 Subject: [PATCH] bugfix git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1618 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/admin.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/roundup/admin.py b/roundup/admin.py index 8100494..fd81d2d 100644 --- a/roundup/admin.py +++ b/roundup/admin.py @@ -16,7 +16,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: admin.py,v 1.46 2003-03-23 06:07:05 richard Exp $ +# $Id: admin.py,v 1.47 2003-03-23 09:37:20 richard Exp $ '''Administration commands for maintaining Roundup trackers. ''' @@ -801,18 +801,18 @@ Command help: for spec in prop_names: if ':' in spec: name, width = spec.split(':') - if width == '': + if width == '': props.append((name, len(spec))) - else: + else: props.append((name, int(width))) else: # this is going to be slow maxlen = len(spec) for nodeid in cl.list(): - curlen = len(str(cl.get(nodeid, spec))) + curlen = len(str(cl.get(nodeid, spec))) if curlen > maxlen: maxlen = curlen - props.append((spec, maxlen)) + props.append((spec, maxlen)) # now display the heading print ' '.join([name.capitalize().ljust(width) for name,width in props]) -- 2.30.2