🚲U
Size: a a a
🚲U
ES
🚲U
ES
ES
ES
🚲U
🚲U
🚲U
p
Upwork.get_upwork_response, а self.get_upwork_response()name 'self' is not defined🚲U
ES
Upwork.get_upwork_response, а self.get_upwork_response()name 'self' is not definedА
import asyncio
import asyncpg
class Database:
def __init__(self, loop: asyncio.AbstractEventLoop):
print(config.PGPASSWORD)
self.loop = loop.run_until_complete(
asyncpg.create_pool(
user=admin,
password=admin,
host='127.0.0.1',
)
)
db = Database(loop=asyncio.get_event_loop())
ошибка asyncpg.exceptions.ConnectionDoesNotExistError: connection was closed in the middle of operation
Что я не так делаюYV
import asyncio
import asyncpg
class Database:
def __init__(self, loop: asyncio.AbstractEventLoop):
print(config.PGPASSWORD)
self.loop = loop.run_until_complete(
asyncpg.create_pool(
user=admin,
password=admin,
host='127.0.0.1',
)
)
db = Database(loop=asyncio.get_event_loop())
ошибка asyncpg.exceptions.ConnectionDoesNotExistError: connection was closed in the middle of operation
Что я не так делаюYV
А
YV
YV
YV
YV