When I execute the similar code in DB Browser everything works as it should.
However, in Python it produces an error -> sqlite3.OperationalError: no such column: True
What is the problem?
now = datetime.datetime.now() now_date = (" '" + str(now.day) + ':' + str(now.month) + ':' + str(now.year) + "' ") users_db.execute("UPDATE members SET paid = False, date_of_removal =" + str(now_date) + "WHERE (days_left = 0 AND paid = True)")
paid
? - Sergey GornostaevSET paid = 'False'
andAND paid = 'True'
- Sergey Gornostaev