Commit d1e7948f3e9049f90f97f4e07f996cc118489e17
1 parent
6238908c
Add method convert_amount_string_to_float
Showing
1 changed file
with
3 additions
and
0 deletions
@@ -555,3 +555,6 @@ def generate_test_bid_data_second_stage(tender_data, index='0'): | @@ -555,3 +555,6 @@ def generate_test_bid_data_second_stage(tender_data, index='0'): | ||
555 | parameter = {"value": fake.random_element(elements=(0.05, 0.01, 0)), "code": feature.get('code', '')} | 555 | parameter = {"value": fake.random_element(elements=(0.05, 0.01, 0)), "code": feature.get('code', '')} |
556 | bid.data.parameters.append(parameter) | 556 | bid.data.parameters.append(parameter) |
557 | return bid | 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