Skip to content

Commit

Permalink
feat: remove print
Browse files Browse the repository at this point in the history
  • Loading branch information
wuranxu committed Jan 30, 2024
1 parent ad199bd commit e2a9662
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
28 changes: 0 additions & 28 deletions app/core/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
]
}
}
1 change: 0 additions & 1 deletion app/crud/operation/PityOperationDao.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit e2a9662

Please sign in to comment.