dt format
This commit is contained in:
parent
ad5c0cb0a7
commit
6f5c39c638
@ -6,9 +6,11 @@ from daemons.api import api
|
||||
from daemons.bot import bot
|
||||
from daemons.fetch import fetch
|
||||
from daemons.notify import notify
|
||||
import locale
|
||||
|
||||
|
||||
logging.config.dictConfig(settings.logging_config)
|
||||
locale.setlocale(locale.LC_TIME, 'ru_RU.UTF-8')
|
||||
arg = sys.argv[-1]
|
||||
|
||||
if arg == "bot":
|
||||
|
@ -38,7 +38,7 @@ class Processor:
|
||||
"end_session": True
|
||||
}
|
||||
return {
|
||||
"text": f"Твое ближайшее занятие {str(lesson['begin'])}: {lesson['discipline']}",
|
||||
"text": f'Твое ближайшее занятие {lesson["begin"].strftime("%d %B %H:%M")}: {lesson["discipline"]}',
|
||||
"end_session": True
|
||||
}
|
||||
else:
|
||||
@ -63,6 +63,6 @@ class Processor:
|
||||
"end_session": True
|
||||
}
|
||||
return {
|
||||
"text": f"Отлично, теперь я могу подсказывать тебе расписание. Твое ближайшее занятие {lesson['begin']}: {lesson['discipline']}",
|
||||
"text": f'Отлично, теперь я могу подсказывать тебе расписание. Твое ближайшее занятие {lesson["begin"].strftime("%d %B %H:%M")}: {lesson["discipline"]}',
|
||||
"end_session": True
|
||||
}
|
Loading…
Reference in New Issue
Block a user