parceloob: Do not show "None", but an empty string
This commit is contained in:
parent
9bcf070ca7
commit
21c0c85ddd
1 changed files with 2 additions and 2 deletions
|
|
@ -51,8 +51,8 @@ class HistoryFormatter(IFormatter):
|
|||
return result
|
||||
|
||||
return ' %s %s %s' % (self.colored('%-19s' % obj.date, 'blue'),
|
||||
self.colored('%-17s' % obj.location, 'magenta'),
|
||||
self.colored(obj.activity, 'yellow'))
|
||||
self.colored('%-17s' % (obj.location or ''), 'magenta'),
|
||||
self.colored(obj.activity or '', 'yellow'))
|
||||
|
||||
class StatusFormatter(IFormatter):
|
||||
MANDATORY_FIELDS = ('id',)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue