diff --git a/telegram_bot/bot_updates.py b/telegram_bot/bot_updates.py index a709bf7..821de90 100644 --- a/telegram_bot/bot_updates.py +++ b/telegram_bot/bot_updates.py @@ -80,7 +80,7 @@ def update_based_on_crontab(pCurrent_Time): current_time_ctime = time.ctime() ctime_split = str(current_time_ctime).split(' ') - if [0] == "Mon": + if ctime_split[0] == "Mon": current_day = 0 elif ctime_split[0] == "Tue": current_day = 1