Commit 7b53195a authored by Denis Laxalde's avatar Denis Laxalde
Browse files

[py3] Fix comparison of cardinality when maxvalue is graph_nodes.INFINITY

See also 1dd2faa2de16.
parent c1bdaadb783c
......@@ -133,7 +133,7 @@ def integrity_cardinality(data_object):
minc, maxc = minmax_cardinality(parent_cardinality)
minvalue = min(minc, minvalue)
if maxc == graph_nodes.INFINITY:
if maxc == graph_nodes.INFINITY or maxvalue == graph_nodes.INFINITY:
maxvalue = 'n'
maxvalue = max(maxc, maxvalue)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment