Commit 562483b7 authored by Aurel's avatar Aurel

no need to insert data into predicate table if dict is empty

parent 4c70a3cc
...@@ -59,8 +59,10 @@ predicate_property_dict</string> </value> ...@@ -59,8 +59,10 @@ predicate_property_dict</string> </value>
<dtml-let predicate_list="[]">\n <dtml-let predicate_list="[]">\n
<dtml-in prefix="loop" expr="_.range(_.len(uid))">\n <dtml-in prefix="loop" expr="_.range(_.len(uid))">\n
<dtml-if "isPredicate[loop_item]">\n <dtml-if "isPredicate[loop_item]">\n
<dtml-if expr="_.len(predicate_property_dict[loop_item]) > 0">\n
<dtml-call expr="predicate_list.append(loop_item)">\n <dtml-call expr="predicate_list.append(loop_item)">\n
</dtml-if>\n </dtml-if>\n
</dtml-if>\n
</dtml-in>\n </dtml-in>\n
<dtml-if expr="_.len(predicate_list) > 0">\n <dtml-if expr="_.len(predicate_list) > 0">\n
REPLACE INTO predicate VALUES \n REPLACE INTO predicate VALUES \n
......
221 224
\ No newline at end of file \ No newline at end of file
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