From a0bb3dec12e5323fcb5fcb11e62c5fa87a5d0ffb Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 18 Feb 2024 16:58:00 +0800 Subject: [PATCH] bugfix --- ahserver/baseProcessor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ahserver/baseProcessor.py b/ahserver/baseProcessor.py index 0a91059..048bb81 100755 --- a/ahserver/baseProcessor.py +++ b/ahserver/baseProcessor.py @@ -136,8 +136,9 @@ class TemplateProcessor(BaseProcessor): url = self.resource.entireUrl(request, path) ns = self.run_ns te = self.run_ns['tmpl_engine'] - print(f'{url=}, {ns=}') - return await te.render(url,**ns) + print(f'{url=}, {ns=}, {path=}') + # return await te.render(url,**ns) + return await te.render(path,**ns) async def datahandle(self,request): self.content = await self.path_call(request)