Moved fixed with definition to themes class, made time column in project load fixed width and added thin space between words and multiplier

This commit is contained in:
Veronica K. B. Olsen
2020-09-20 11:44:33 +02:00
parent a73c5b3776
commit b9f983a348
5 changed files with 27 additions and 25 deletions
+4 -4
View File
@@ -29,7 +29,7 @@ import logging
from datetime import datetime
from nw.constants import nwConst
from nw.constants import nwConst, nwUnicode
logger = logging.getLogger(__name__)
@@ -150,11 +150,11 @@ def formatInt(theInt):
theVal /= 1000.0
if theVal < 1000.0:
if theVal < 10.0:
return "%4.2f%s" % (theVal, pF)
return "%4.2f%s%s" % (theVal, nwUnicode.U_THNSP, pF)
elif theVal < 100.0:
return "%4.1f%s" % (theVal, pF)
return "%4.1f%s%s" % (theVal, nwUnicode.U_THNSP, pF)
else:
return "%3.0f%s" % (theVal, pF)
return "%3.0f%s%s" % (theVal, nwUnicode.U_THNSP, pF)
return "%d" % theInt