I tried to do a shopping cart in the telegram bot using psycopg2
and aiogram
, but the data does not appear in the "korzina" column
code:
connection.cursor(f'INSERT INTO bot_users(korzina) VALUES({id_tovara}) FROM bot_user WHERE user_id= {us_id}')
connection.commit()
Types of columns:
user_id | bigint
korzina | text
I'm using Postgresql.
Nothing happened with the "korzina" column. All data are written correctly (name of columns and table name).