Moar transfer logging.

This commit is contained in:
Dominik Pantůček 2025-07-17 15:17:18 +02:00
parent afb5476c2d
commit ff68817129
2 changed files with 8 additions and 3 deletions

View file

@ -150,11 +150,16 @@ class ShopAdapter(QtCore.QObject):
@QtCore.Slot('QVariant', 'QVariant', 'QVariant', result='QVariant')
def newTransfer(self, uidfrom, uidto, amount):
logger.debug("newTransfer %s %s %s", uidfrom, uidto, amount)
ufrom = brmbar.Account.load(db, id=uidfrom)
logger.debug(" ufrom = %s", ufrom)
uto = brmbar.Account.load(db, id=uidto)
logger.debug(" uto = %s", uto)
shop.transfer_credit(ufrom, uto, amount = amount)
db.commit()
return currency.str(float(amount))
csfa = currency.str(float(amount))
logger.debug(" csfa = '%s'", csfa)
return csfa
@QtCore.Slot('QVariant', result='QVariant')
def balance_user(self, userid):