mirror of
https://github.com/Balshgit/mosgortrans.git
synced 2025-09-11 13:00:40 +03:00
add time to message
This commit is contained in:
parent
4dcb79915d
commit
eb6fbe56fa
@ -67,7 +67,7 @@ def parse_site(driver: WebDriver, url: str, message: str) -> str:
|
||||
bus_t19_arrival = element.find_element(by='class name', value='masstransit-prognoses-view__title-text')
|
||||
except NoSuchElementException:
|
||||
pass
|
||||
answer = f'{datetime.now().strftime("%X")} {message}\n\n'
|
||||
answer = f'{datetime.now().strftime("%H:%M")} - {message}\n\n'
|
||||
if not all([bus_300, bus_t19]):
|
||||
return 'Автобусов 300 или Т19 не найдено. \n\nСмотри на карте :)'
|
||||
if bus_300:
|
||||
|
Loading…
x
Reference in New Issue
Block a user