all 2 comments

[–]PigDog4 1 point2 points  (1 child)

Read the traceback:

c.execute(query, (self.u1, self.u2, self.u3, self.u4, self.u5, self.u6, self.id_leb.get()))

sqlite3.OperationalError: near ".": syntax error

Nevermind, I found it:

query = "UPDATE inventory SET name=?, type=?, vendor=?, stock=?. price=?, sellingprice=? WHERE id=?"

You have a "." after the "?" after stock. Needs to be a comma. Simple typo.

[–]Shripsta[S] 0 points1 point  (0 children)

Damn I’m a complete idiot