brmbarv3: Add missing db.commit() at two places

This commit is contained in:
Petr Baudis 2012-09-28 23:28:18 +02:00
parent b11cd6c338
commit 6a71841112
2 changed files with 3 additions and 0 deletions

View file

@ -82,6 +82,7 @@ class Account:
def add_barcode(self, barcode):
with closing(self.db.cursor()) as cur:
cur.execute("INSERT INTO barcodes (account, barcode) VALUES (%s, %s)", [self.id, barcode])
self.db.commit()
def rename(self, name):
with closing(self.db.cursor()) as cur: