H
H
hey_umbrella2021-06-30 23:15:05
Python
hey_umbrella, 2021-06-30 23:15:05

How to remove comma from sqlite output?

I need to remove the comma from the output, how do I do that?

cursor.execute(f'SELECT star FROM stars WHERE photo = "{randomwall}" ') 
    mark = cursor.fetchone()
    con.commit()
    user_id = message.from_user.id
    username = message.from_user.username
    bot.send_message(admin_chat, f'User saw random wallpapers!\n\ninfo: @{username} / {user_id}')
    bot.send_message(message.chat.id, "Чтобы скачать обои в хорошем качестве,перейдите по ссылке)", reply_markup=key_random)
    markup = telebot.types.InlineKeyboardMarkup()
    markup.add(telebot.types.InlineKeyboardButton(text='Сохранить❔', callback_data="save"))
    markup.add(telebot.types.InlineKeyboardButton(text=f'Лайк ♥ {mark}', callback_data="stars"))
    bot.send_message(message.chat.id, randomwall, reply_markup=markup)

60dcd0c6c0187760645384.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WolfInChains, 2021-06-30
@hey_umbrella

text=f'Лайк ♥ {mark[0]}'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question