A
A
AlexaAioGram2021-07-25 17:10:43
Python
AlexaAioGram, 2021-07-25 17:10:43

Why when I pull out the information from a database, displays None?

I pull information from the database, but the output is always None, although the information is in it.

#FROM db.db

def get_id():
    conn = get_connection()
    c = conn.cursor()
    c.execute('SELECT * FROM users')
    c.fetchall()


# CODE ITSELF WHERE DISPLAYS INFU ( WHERE " All IDs: {str(get)})
@dp.message_handler(chat_id=adm, state=rasy.q1)
async def erer(message: types.Message, state: FSMContext):
    text = message.text
    get = get_id()
    await message.answer(f'Вы отправили в рассылку: {text}\n'
                         f'Все айдишники: {str(get)}')


Help someone who is strong in this area)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2021-07-25
@AlexaAioGram

So the function did not return anything
https://pythonworld.ru/tipy-dannyx-v-python/vse-o-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question