mirror of
https://github.com/Balshgit/mosgortrans.git
synced 2025-12-15 03:06:45 +03:00
lefthook file back
This commit is contained in:
@@ -17,6 +17,7 @@ download_gecko_driver()
|
|||||||
driver = configure_firefox_driver()
|
driver = configure_firefox_driver()
|
||||||
|
|
||||||
executor = ThreadPoolExecutor(5)
|
executor = ThreadPoolExecutor(5)
|
||||||
|
loop = asyncio.get_running_loop()
|
||||||
|
|
||||||
stations_cb = CallbackData('station', 'direction')
|
stations_cb = CallbackData('station', 'direction')
|
||||||
|
|
||||||
@@ -49,7 +50,6 @@ async def home_office(
|
|||||||
)
|
)
|
||||||
message = 'Остановка Б. Академическая ул, д. 15'
|
message = 'Остановка Б. Академическая ул, д. 15'
|
||||||
|
|
||||||
loop = asyncio.get_running_loop()
|
|
||||||
text = await loop.run_in_executor(executor, parse_site, driver, url, message)
|
text = await loop.run_in_executor(executor, parse_site, driver, url, message)
|
||||||
|
|
||||||
# text = parse_site(
|
# text = parse_site(
|
||||||
|
|||||||
Reference in New Issue
Block a user