Problem: Call my method, values get executed and should get committed, but don't. Method below, but it does not generate any error... nothing happens but values do get printed:
def updateNameWhereTime(self, time, name): # time is a floating point from time.time(),
# name is a simple string like 'this'
print(time, name) # This prints right values.
self.db.execute("UPDATE Flights SET name=(?) WHERE startTime=(?);", (name, time))
self.db.commit() # Does not save anything to the .db
I quarantined has little of the database has I could, and it works perfectly fine. (quarantine here). I know this code should run. Also, I'm a beginner and this is my very first project.
Anything specific that I should be looking for? Is there something I might not be doing?
EDIT: Full code that generates the data here, has static sample html for test runs: https://github.com/SimonWoodburyForget/Experiments/tree/master/WarThunder