diff --git a/app/core/render.py b/app/core/render.py index 06fa12ae..bb942f28 100644 --- a/app/core/render.py +++ b/app/core/render.py @@ -49,31 +49,3 @@ def render(context: dict, source: str): return tmpl.render(**context) except Exception as e: raise Exception(f"解析参数失败, 请检查变量是否获取到: {str(e)}") - - -if __name__ == "__main__": - # import jinja2 - # - # template = jinja2.Template("""hello {{nan.xixi[0].orderId}} """) - # - # from jinja2 import Environment - # from jinja2.runtime import Context - # - # env = Environment() - - a = "2023-09-14 12:00:00.223" - temp = """{{uuid()}}""" - - c = Render.render(dict(), temp) - print(c) - - js_dat = { - "nan": { - "xixi": [ - { - "ni_zai_gan_ma": "hahahaha", - "orderId": 44 - } - ] - } - } diff --git a/app/crud/operation/PityOperationDao.py b/app/crud/operation/PityOperationDao.py index cc2cf716..4299c332 100644 --- a/app/crud/operation/PityOperationDao.py +++ b/app/crud/operation/PityOperationDao.py @@ -26,5 +26,4 @@ async def count_user_activities(cls, user_id, start_time: datetime, end_time: da PityOperationLog.user_id == user_id) \ .group_by(PityOperationLog.operate_time).order_by(PityOperationLog.operate_time) data = await session.execute(sql) - print(sql) return data.all()