diff options
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): |
