We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 804e4ce commit d1de027Copy full SHA for d1de027
fiduswriter/pandoc/views.py
@@ -1,5 +1,4 @@
1
from httpx import AsyncClient, HTTPError
2
-from asgiref.sync import async_to_sync, sync_to_async
3
4
from django.conf import settings
5
from django.contrib.auth.decorators import login_required
@@ -14,10 +13,8 @@
14
13
PANDOC_URL += "/"
15
16
17
-@sync_to_async
18
@login_required
19
@require_POST
20
-@async_to_sync
21
async def export(request):
22
data = request.body
23
async with AsyncClient() as client:
0 commit comments