Answer the question
In order to leave comments, you need to log in
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()
@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)}')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question