From bbd7e17f66e7bfeb755a2630069ca8cefd3e6f20 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 12 Aug 2025 16:48:53 +0800 Subject: [PATCH] bugfix --- rag/ragprogram.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rag/ragprogram.py b/rag/ragprogram.py index 9a19af4..d711dd6 100644 --- a/rag/ragprogram.py +++ b/rag/ragprogram.py @@ -10,7 +10,7 @@ async def set_program(request, program_type, quota, term=1): qs = await sor.sqlExe(sql, {'orgid': u.userorgid}) if len(qs) == 0: today = curDateString() - expired_date = dateadd(today, months=term) + expired_date = dateAdd(today, months=term) ns = { "id": uuid(), "orgid": u.userorgid, @@ -21,7 +21,7 @@ async def set_program(request, program_type, quota, term=1): await sor.C('ragquota', ns) else: lastq = qs[-1] - expired_date = dateadd(lastq.expired_date, months=term) + expired_date = dateAdd(lastq.expired_date, months=term) ns = { "id": uuid(), "orgid": u.userorgid,