мой код:
connection = sqlite3.connect('auuiuikuiluiluiluiluilt.db')
cursor = connection.cursor()
cursor.execute('CREATE TABLE url (email TEXT, product text, date text);')
cursor.execute('INSERT INTO url(email, product, date) VALUES("email@email.com","0", "2020-04-05")',)
sqlite_select_query = "SELECT date FROM 'url' "
cursor.execute(sqlite_select_query)
records = cursor.fetchall()
print(records)
date_format = "%m/%d/%Y"
a = records[0]
b = "2020-05-03"
delta = b - a
print(delta.days)
connection.commit()
и ошибка, которую он мне дает:
delta = b - a
TypeError: unsupported operand type(s) for -: 'str' and 'tuple'
что я должен сделать, чтобы решить эту проблему?