Mercurial > hg > orthanc-tests
changeset 637:0dc47e4975dd
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 02 Apr 2024 18:52:58 +0200 |
parents | 685022ee236c |
children | 1e76331675a1 |
files | Plugins/Worklists/Run.py |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugins/Worklists/Run.py Tue Apr 02 18:44:09 2024 +0200 +++ b/Plugins/Worklists/Run.py Tue Apr 02 18:52:58 2024 +0200 @@ -143,7 +143,7 @@ if not tag in ignoreTags: line_without_comment = re.sub(b'\s*#.*', b'', line) line_without_comment = line_without_comment.replace(b'\0', b'') - current.append(line_without_comment[4:]) + current.append(line_without_comment[3:]) if len(current) > 0: answers.append(current) @@ -159,7 +159,9 @@ for i in range(len(expected)): for j in range(len(actual)): - if expected[i] == actual[j]: + decoded = list(map(lambda x: x.decode('utf-8'), actual[j])) + + if expected[i] == decoded: return True return False