@client.command()
async def tag(ctx, tag):
sql.execute(f'select tags_name from tags_list')
does_exist = sql.fetchone()
print(does_exist)
if does_exist is not None:
sql.execute(f'SELECT tags_content FROM tags_list')
final = sql.fetchall()
await ctx.send(final[0])
else:
await ctx.send(f"Tag named `{tag}` doesnt exists!")
So the code you see up there is used to get content from the table tags_list.
And the image up there is the table tags_list. I am trying to get tags_content when I call the command. But for example when I call the command like .tag test, I want it to give me test because they are in the same row. But instead, it gives the tags_content from the first row. So it gives h instead of test. How can I specify the row I want to get the content from?
Edit: This is what I get when I run the command .tag test: ('h',)

tagand it has an argument namedtag(not a good idea..) What does the code do with thetagargument?tagis equal totags_namein the database and it should send the content oftags_content. it works as I said in the question.tagargument is not part of the sql query. Is that correct?select tags_name,tags_content from tags_list where tag_name = <your tag>- isnt it?