Commit d1e7948f3e9049f90f97f4e07f996cc118489e17

Authored by kosaniak
1 parent 6238908c

Add method convert_amount_string_to_float

... ... @@ -555,3 +555,6 @@ def generate_test_bid_data_second_stage(tender_data, index='0'):
555 555 parameter = {"value": fake.random_element(elements=(0.05, 0.01, 0)), "code": feature.get('code', '')}
556 556 bid.data.parameters.append(parameter)
557 557 return bid
  558 +
  559 +def convert_amount_string_to_float(amount_string):
  560 + return float(amount_string.replace(' ', '').replace(',', '.'))
... ...
Please register or login to post a comment