From 709664b36325775c85ee5276b8d84727c7006d6f Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 4 Jan 2026 17:19:11 +0800 Subject: [PATCH] bugfix --- accounting/accounting_config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/accounting/accounting_config.py b/accounting/accounting_config.py index aa083d1..2d1a716 100644 --- a/accounting/accounting_config.py +++ b/accounting/accounting_config.py @@ -175,8 +175,9 @@ class Accounting: sor = self.sor await sor.C('settle_log', ns) - async def leg_accounting(self, sor, accid, leg): - # print(f'leg_accounting(), {accid=}, {leg=}') + async def leg_accounting(self, sor, leg): + # print(f'leg_accounting(), {leg=}') + accid = leg['accid'] if leg['amount'] < 0.00001: return subjects = await sor.R('subject', {'id': leg['subjectid']})