fix merge_status in HasConvergence
This commit is contained in:
parent
a6a3f80e30
commit
ee31f8fb45
@ -405,4 +405,6 @@ def merge_status(*args):
|
|||||||
texts matching maximal code are joined with ', '
|
texts matching maximal code are joined with ', '
|
||||||
"""
|
"""
|
||||||
maxcode = max(a[0] for a in args)
|
maxcode = max(a[0] for a in args)
|
||||||
return maxcode, ', '.join([a[1] for a in args if a[0] == maxcode and a[1]])
|
merged = [a[1] for a in args if a[0] == maxcode and a[1]]
|
||||||
|
merged = {m: True for mm in merged for m in mm.split(', ')}
|
||||||
|
return maxcode, ', '.join(merged)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user