Skip to content

Commit d1de027

Browse files
committed
simplify async
1 parent 804e4ce commit d1de027

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

fiduswriter/pandoc/views.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from httpx import AsyncClient, HTTPError
2-
from asgiref.sync import async_to_sync, sync_to_async
32

43
from django.conf import settings
54
from django.contrib.auth.decorators import login_required
@@ -14,10 +13,8 @@
1413
PANDOC_URL += "/"
1514

1615

17-
@sync_to_async
1816
@login_required
1917
@require_POST
20-
@async_to_sync
2118
async def export(request):
2219
data = request.body
2320
async with AsyncClient() as client:

0 commit comments

Comments
 (0)