Skip to content

Commit

Permalink
evaluate obj iso string (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
delcroip authored Oct 3, 2024
1 parent 99d3090 commit 6cd6089
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions calculation/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,13 @@ def resolve_calculation_rules(parent, info, **kwargs):
if calculation or calcrule_type:
list_cr = []
for cr in CALCULATION_RULES:
calculation = f'{calculation}'
if (
(
calculation and
UUID(cr.uuid) == UUID(calculation) and
UUID(cr.uuid) == UUID(str(calculation)) and
(calcrule_type == cr.type or calcrule_type is None)
) or (
calculation == 'None' and calcrule_type == cr.type
not calculation and calcrule_type == cr.type
)
):
list_cr = _append_to_calcrule_list(list_cr, cr)
Expand Down

0 comments on commit 6cd6089

Please sign in to comment.