From ce321a0f111a14d9cde862b6d6cc55ddf1bc11fb Mon Sep 17 00:00:00 2001 From: Sergey Date: Mon, 2 Dec 2024 15:08:26 +0300 Subject: [PATCH] __version__ = '1.0.7' --- app.py | 4 ++-- dinect_api.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 9966973..defb409 100644 --- a/app.py +++ b/app.py @@ -229,10 +229,10 @@ def run_import(): ) if not result: - print(f'error in line: [{line_count}]- bonuses_update: {data}') + print(f'ERROR in line: [{line_count}]- bonuses_update: {data}') log_file.write(f'error in line: [{line_count}]- bonuses_update: {data}\n') else: - print(f'Bonuses updated, user_id={din_id}') + print(f'RESULT=OK, Bonuses updated, user_id={din_id}') else: print(f'error in line: [{line_count}]- Invalid user: {user_id}') diff --git a/dinect_api.py b/dinect_api.py index b6674bb..1564f92 100644 --- a/dinect_api.py +++ b/dinect_api.py @@ -196,7 +196,7 @@ def bonuses_update( "sum_discount": sum_discount, "sum_with_discount ": sum_with_discount, "commit": 'True', - "curr_iso_name": 'RUB', + "curr_iso_name": currency, "override": 'True' # "date": '2024-08-03 12:53:07', }