From 6b3f2710a4bc3941e6a949ea6433a4ae4767de3a Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 16 Dec 2025 20:54:49 +0800 Subject: [PATCH] bugfix --- wwwroot/open_customer_accounts.dspy | 7 +++++++ wwwroot/open_owner_accounts.dspy | 7 +++++++ wwwroot/open_reseller_accounts.dspy | 7 +++++++ 3 files changed, 21 insertions(+) create mode 100644 wwwroot/open_customer_accounts.dspy create mode 100644 wwwroot/open_owner_accounts.dspy create mode 100644 wwwroot/open_reseller_accounts.dspy diff --git a/wwwroot/open_customer_accounts.dspy b/wwwroot/open_customer_accounts.dspy new file mode 100644 index 0000000..255f483 --- /dev/null +++ b/wwwroot/open_customer_accounts.dspy @@ -0,0 +1,7 @@ +debug(f'{params_kw=}') +dbname = get_module_dbname('accounting') +db = DBPools() +async with db.sqlorContext(dbname) as sor: + await openCustomerAccounts(sor, '0', params_kw.orgid) + return f'{params_kw.orgid} accounts opened') +return f'{db.e_except=} diff --git a/wwwroot/open_owner_accounts.dspy b/wwwroot/open_owner_accounts.dspy new file mode 100644 index 0000000..f3b9813 --- /dev/null +++ b/wwwroot/open_owner_accounts.dspy @@ -0,0 +1,7 @@ +debug(f'{params_kw=}') +dbname = get_module_dbname('accounting') +db = DBPools() +async with db.sqlorContext(dbname) as sor: + await openOwnerAccounts(sor, '0') + return f'0 accounts opened') +return f'{db.e_except=} diff --git a/wwwroot/open_reseller_accounts.dspy b/wwwroot/open_reseller_accounts.dspy new file mode 100644 index 0000000..06e6083 --- /dev/null +++ b/wwwroot/open_reseller_accounts.dspy @@ -0,0 +1,7 @@ +debug(f'{params_kw=}') +dbname = get_module_dbname('accounting') +db = DBPools() +async with db.sqlorContext(dbname) as sor: + await openResellerAccounts(sor, '0', params_kw.orgid) + return f'{params_kw.orgid} accounts opened') +return f'{db.e_except=}