Commit e71356a5 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_mysql_innodb_catalog: Fix whenever checkConsistency return None

parent a8f1b221
...@@ -5,7 +5,7 @@ VALUES ...@@ -5,7 +5,7 @@ VALUES
<dtml-in prefix="loop" expr="_.range(_.len(uid))"> <dtml-in prefix="loop" expr="_.range(_.len(uid))">
( (
<dtml-sqlvar expr="uid[loop_item]" type="int">, <dtml-sqlvar expr="uid[loop_item]" type="int">,
<dtml-sqlvar expr="int(len(checkConsistency[loop_item]) > 0)" type="int"> <dtml-sqlvar expr="int((checkConsistency[loop_item] is None) or len(checkConsistency[loop_item]) > 0)" type="int">
) )
<dtml-if sequence-end> <dtml-if sequence-end>
<dtml-else> <dtml-else>
......
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