forked from brmlab/brmbar-github
gui: try logging acct in acct_map
This commit is contained in:
parent
93f9b336b6
commit
f9230ed5bf
2 changed files with 2 additions and 1 deletions
|
@ -65,6 +65,7 @@ class ShopAdapter(QtCore.QObject):
|
||||||
return map
|
return map
|
||||||
|
|
||||||
def acct_map(self, acct):
|
def acct_map(self, acct):
|
||||||
|
logger.debug("acct_map: acct=%s", acct)
|
||||||
if acct is None:
|
if acct is None:
|
||||||
return None
|
return None
|
||||||
if acct.acctype == 'debt':
|
if acct.acctype == 'debt':
|
||||||
|
|
|
@ -16,7 +16,7 @@ class Account:
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def load_by_barcode(cls, db, barcode):
|
def load_by_barcode(cls, db, barcode):
|
||||||
logger.debug("load_by_barcode: %s", barcode)
|
logger.debug("load_by_barcode: '%s'", barcode)
|
||||||
res = db.execute_and_fetch("SELECT account FROM barcodes WHERE barcode = %s", [barcode])
|
res = db.execute_and_fetch("SELECT account FROM barcodes WHERE barcode = %s", [barcode])
|
||||||
if res is None:
|
if res is None:
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue