tricc-oo 1.5.4__py3-none-any.whl → 1.5.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1416,7 +1416,7 @@ def reorder_node_list(list_node, group, processed_nodes):
1416
1416
 
1417
1417
  # Define a lambda to assign numeric priorities
1418
1418
  def filter_logic(l_node):
1419
- priority = (getattr(l_node, "priority", None) or 0) / 100
1419
+ priority = int(getattr(l_node, "priority", None) or 400) / 100
1420
1420
  if (
1421
1421
  isinstance(l_node, TriccNodeWait)
1422
1422
  and any(isinstance(rn, TriccNodeActivity) and any(sn.activity == rn for sn in list_node) for rn in l_node.reference)
@@ -1837,10 +1837,10 @@ def get_prev_node_expression( node, processed_nodes, is_calculate=False, exclude
1837
1837
  is_calculate=is_calculate,
1838
1838
  is_prev=True,
1839
1839
  process=process)
1840
- if not isinstance(node, TriccNodeActivity) or is_calculate:
1841
- add_sub_expression(expression_inputs, sub )
1842
- else:
1840
+ if isinstance(node, TriccNodeActivity) or is_calculate:
1843
1841
  add_sub_expression(act_expression_inputs, sub )
1842
+ else:
1843
+ add_sub_expression(expression_inputs, sub )
1844
1844
 
1845
1845
  if act_expression_inputs:
1846
1846
  act_sub = or_join(act_expression_inputs)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tricc-oo
3
- Version: 1.5.4
3
+ Version: 1.5.6
4
4
  Summary: Python library that converts CDSS L2 in L3
5
5
  Project-URL: Homepage, https://github.com/SwissTPH/tricc
6
6
  Project-URL: Issues, https://github.com/SwissTPH/tricc/issues
@@ -37,10 +37,10 @@ tricc_oo/strategies/output/xlsform_cdss.py,sha256=8oLlgS1Hr6IVvI0O71kIk5oIKXbt2l
37
37
  tricc_oo/strategies/output/xlsform_cht.py,sha256=QcWcmXqIoaQWqLU2cILqnU7ybKYBs2Xd6cUL0gSr3gw,20148
38
38
  tricc_oo/strategies/output/xlsform_cht_hf.py,sha256=0D_H68a2S7oLKJENEePaRGIocrRIF45BofHlLOtGsKo,2206
39
39
  tricc_oo/visitors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
40
- tricc_oo/visitors/tricc.py,sha256=aGWpjk3cLd4DfZg7Zwqp8hzEv6qTn7ewpNha-VFRX4s,99121
40
+ tricc_oo/visitors/tricc.py,sha256=e-lJduvw1RNyA_NWZ9aC2SZbEf9EGiepJ4uhu7GvsRQ,99123
41
41
  tricc_oo/visitors/utils.py,sha256=Gol4JNozPEd30Q1l8IPIPhx5fqVyy9R81GofGVebgD8,484
42
42
  tricc_oo/visitors/xform_pd.py,sha256=jgjBLbfElVdi0NmClhw6NK6qNcIgWYm4KMXfVwiQwXM,9705
43
- tricc_oo-1.5.4.dist-info/METADATA,sha256=lj1ko4jc633Z3zjDhgLjlLrQLOoa8-Bph5nc7R-vixQ,7877
44
- tricc_oo-1.5.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
45
- tricc_oo-1.5.4.dist-info/top_level.txt,sha256=NvbfMNAiy9m4b1unBsqpeOQWh4IgA1Xa33BtKA4abxk,15
46
- tricc_oo-1.5.4.dist-info/RECORD,,
43
+ tricc_oo-1.5.6.dist-info/METADATA,sha256=z4GgDtL5N9UGHl46M7xaRaLKS4bFlMMxrlSKSA_o8aM,7877
44
+ tricc_oo-1.5.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
45
+ tricc_oo-1.5.6.dist-info/top_level.txt,sha256=NvbfMNAiy9m4b1unBsqpeOQWh4IgA1Xa33BtKA4abxk,15
46
+ tricc_oo-1.5.6.dist-info/RECORD,,