Commit 48711530 authored by Kuzmenko Pavel's avatar Kuzmenko Pavel

fix(BSE/BSD): #18 operatorFee.amount

parent e79125ce
......@@ -42,11 +42,11 @@ class CheckRuleMixin:
return True
if pattern.fullmatch(str(filter_field_value)):
return True
if top and not bottom and float(filter_field_value) < float(top):
if top and not bottom and float(top) > float(filter_field_value):
return True
elif bottom and not top and float(filter_field_value) >= float(bottom):
return True
elif bottom and top and float(top) < float(filter_field_value) <= float(bottom):
elif bottom and top and float(top) > float(filter_field_value) >= float(bottom):
return True
elif str(value) == str(filter_field_value):
return True
......@@ -70,11 +70,11 @@ class CheckRuleMixin:
try:
filter_field_value = procedure[filter_field]
if filter_field:
if top and not bottom and float(filter_field_value) > float(top):
if top and not bottom and float(top) > float(filter_field_value):
return values
elif bottom and not top and float(filter_field_value) <= float(bottom):
elif bottom and not top and float(filter_field_value) >= float(bottom):
return values
elif bottom and top and float(top) < float(filter_field_value) <= float(bottom):
elif bottom and top and float(top) > float(filter_field_value) >= float(bottom):
return values
except (KeyError, ValueError, BoxKeyError):
LOG.exception(f'Check rule data fail - {filter_field}')
......
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