Working for all isins and new requirements #144

Merged
FlorianKellermann merged 13 commits from bot into main 2022-05-08 08:44:02 +00:00
Showing only changes of commit f892440b2e - Show all commits

View File

@ -68,8 +68,13 @@ def update_crontab(p_my_handler):
for element in all_users:
if element["cron"] != '' and element["telegram_user_id"] != '':
user_ids.append(int(element["telegram_user_id"]))
user_crontab.append(str(element["cron"]))
try:
user_ids.append(int(element["telegram_user_id"]))
try:
user_crontab.append(str(element["cron"]))
except: continue
except: continue
print(user_ids)