diff options
| author | Jan Tuomi <jan.tuomi@valuemotive.com> | 2021-02-14 17:51:34 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan.tuomi@valuemotive.com> | 2021-02-14 17:51:34 +0200 |
| commit | 34dc42bca46397118cf4f53e2f119eea1d56cdc1 (patch) | |
| tree | 210dfa562ce16a5bba7ed1ac8b624792ab973acd /hommaexceli_py/telegram_client.py | |
| parent | bd2f7811b1f1633e150642222a9e07b5dd7a375a (diff) | |
Fix last done column updatingmaster
Diffstat (limited to 'hommaexceli_py/telegram_client.py')
| -rw-r--r-- | hommaexceli_py/telegram_client.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/hommaexceli_py/telegram_client.py b/hommaexceli_py/telegram_client.py index bf5a614..9f0a42c 100644 --- a/hommaexceli_py/telegram_client.py +++ b/hommaexceli_py/telegram_client.py @@ -13,7 +13,11 @@ from sheets_client import ( fetch_sheet_data, update_sheet_last_done_column, ) -from data_parser import filter_only_this_week, process_rows +from data_parser import ( + filter_only_this_week, + process_rows, + updated_last_done_datestamps, +) from functools import partial @@ -54,7 +58,8 @@ def _callback_alarm(context: CallbackContext, sheets_service: Resource): context.bot.send_message(chat_id=chat_id, text=message) - update_sheet_last_done_column(sheets_service, processed_rows) + new_datestamps = updated_last_done_datestamps(processed_rows) + update_sheet_last_done_column(sheets_service, new_datestamps) def _callback_timer(update: Update, context: CallbackContext, sheets_service: Resource): |
