db.cur.execute('SELECT * FROM twoKM_Medium_temperature_refrigeration_unit_model ORDER BY ABS(сooling_capacity - cold_conductivity) ASC LIMIT 1')
data = db.cur.fetchall()
db.cur.execute('SELECT * FROM twoKM_Medium_temperature_refrigeration_unit_model ORDER BY ABS(сooling_capacity - cold_conductivity) ASC LIMIT 1')
sqlite3.OperationalError: no such column: cold_conductivity
#cold_conductivity - наше заданное число
Traceback (most recent call last):
File "F:\pythonProject\parcer2.0\parcer.py", line 42, in <module>
asyncio.run(main())
File "C:\Users\Артём\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\Артём\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 646, in run_until_complete
return future.result()
File "F:\pythonProject\parcer2.0\parcer.py", line 32, in main
client.on_message(parser_functions.on_message) # регистрация обработчика сообщений
AttributeError: 'TelegramClient' object has no attribute 'on_message'. Did you mean: 'pin_message'?
Traceback (most recent call last):
File "F:\pythonProject\parcer2.0\parcer.py", line 37, in <module>
asyncio.run(main())
File "C:\Users\Артём\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\Артём\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 646, in run_until_complete
return future.result()
File "F:\pythonProject\parcer2.0\parcer.py", line 29, in main
err = parser_functions.parse(client, channel) # обработка сообщений
File "F:\pythonProject\parcer2.0\parser_functions.py", line 61, in parse
os.makedirs(channel_id, exist_ok=True) # создание папки канала в текущей директории
File "C:\Users\Артём\AppData\Local\Programs\Python\Python310\lib\os.py", line 210, in makedirs
head, tail = path.split(name)
File "C:\Users\Артём\AppData\Local\Programs\Python\Python310\lib\ntpath.py", line 211, in split
p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not coroutine
sys:1: RuntimeWarning: coroutine 'get_channel_id' was never awaited