fix reminder.py
This commit is contained in:
+3
-1
@@ -41,7 +41,9 @@ def remind(chat_to_repeat, today):
|
|||||||
|
|
||||||
@repeat(every().day.at('06:00'), PYTHONCHATRU)
|
@repeat(every().day.at('06:00'), PYTHONCHATRU)
|
||||||
def stat_report(chat_to_repeat):
|
def stat_report(chat_to_repeat):
|
||||||
bot.send_message(chat_to_repeat, report.create_report_text(PYTHONCHATRU))
|
rep = report.create_report_text(PYTHONCHATRU)
|
||||||
|
if rep:
|
||||||
|
bot.send_message(chat_to_repeat, rep)
|
||||||
report.reset_report_stats(PYTHONCHATRU)
|
report.reset_report_stats(PYTHONCHATRU)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user