MCPcopy Create free account
hub / github.com/FlyingFeather/DEA-SQL / rebuild_cond_unit_val

Function rebuild_cond_unit_val

single_eval.py:712–725  ·  view source on GitHub ↗
(cond_unit)

Source from the content-addressed store, hash-verified

710
711# Rebuild SQL functions for value evaluation
712def rebuild_cond_unit_val(cond_unit):
713 if cond_unit is None or not DISABLE_VALUE:
714 return cond_unit
715
716 not_op, op_id, val_unit, val1, val2 = cond_unit
717 if type(val1) is not dict:
718 val1 = None
719 else:
720 val1 = rebuild_sql_val(val1)
721 if type(val2) is not dict:
722 val2 = None
723 else:
724 val2 = rebuild_sql_val(val2)
725 return not_op, op_id, val_unit, val1, val2
726
727
728def rebuild_condition_val(condition):

Callers 1

rebuild_condition_valFunction · 0.70

Calls 1

rebuild_sql_valFunction · 0.70

Tested by

no test coverage detected