Include asyncio task information in /-/threads debug page

This commit is contained in:
Simon Willison 2019-12-04 22:46:39 -08:00
commit d6b6c9171f
5 changed files with 41 additions and 4 deletions

View file

@ -27,5 +27,8 @@ class JsonDataView(BaseView):
return await self.render(
["show_json.html"],
request=request,
context={"filename": self.filename, "data": data},
context={
"filename": self.filename,
"data_json": json.dumps(data, indent=4),
},
)