mirror of
https://github.com/GaMeNu/HFCNotificator.git
synced 2024-11-16 15:24:51 +02:00
v2.1.0
latest command is back, now with the ability to choose time back Added command documentation in README
This commit is contained in:
parent
7671d861b5
commit
79ddabe800
@ -351,6 +351,7 @@ class Notificator(commands.Cog):
|
|||||||
raise ValueError("Page number out of range")
|
raise ValueError("Page number out of range")
|
||||||
|
|
||||||
ret_str = f'Page {page_number + 1}/{alert_counter//alerts_in_page + 1}\n\n'
|
ret_str = f'Page {page_number + 1}/{alert_counter//alerts_in_page + 1}\n\n'
|
||||||
|
|
||||||
for alert in alert_history[(page_number * alerts_in_page):((page_number + 1) * alerts_in_page)]:
|
for alert in alert_history[(page_number * alerts_in_page):((page_number + 1) * alerts_in_page)]:
|
||||||
alert_date = datetime.datetime.strptime(alert["alertDate"], "%Y-%m-%d %H:%M:%S")
|
alert_date = datetime.datetime.strptime(alert["alertDate"], "%Y-%m-%d %H:%M:%S")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user