change format erase datawipe

This commit is contained in:
Cayo Puigdefabregas 2023-06-13 16:48:52 +02:00
parent 48604e1a8f
commit 1bdf0c8baa

View file

@ -568,7 +568,7 @@ class EraseDataWipe(EraseBasic):
def __format__(self, format_spec: str) -> str:
v = ''
if 't' in format_spec:
v += '{} {}.'.format(self.type, self.severity)
v += '{} {}. '.format(self.type, self.severity.get_public_name())
if 's' in format_spec:
if not self.document:
v += 'On {}'.format(self.date_str)