forked from mirrors/bookwyrm
Style fixes (import order & else)
This commit is contained in:
parent
4e67d8bb38
commit
1a5af7899b
2 changed files with 6 additions and 6 deletions
|
@ -1,9 +1,10 @@
|
|||
''' handles all the activity coming out of the server '''
|
||||
from urllib.parse import urlencode
|
||||
|
||||
from django.db import IntegrityError, transaction
|
||||
from django.http import HttpResponseNotFound, JsonResponse
|
||||
from django.views.decorators.csrf import csrf_exempt
|
||||
import requests
|
||||
from urllib.parse import urlencode
|
||||
|
||||
from fedireads import activitypub
|
||||
from fedireads import models
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
''' views for actions you can take in the application '''
|
||||
from io import TextIOWrapper
|
||||
import re
|
||||
|
||||
from django.contrib.auth import authenticate, login, logout
|
||||
from django.contrib.auth.decorators import login_required
|
||||
from django.http import HttpResponseBadRequest, HttpResponseNotFound
|
||||
from django.shortcuts import redirect
|
||||
from django.template.response import TemplateResponse
|
||||
from io import TextIOWrapper
|
||||
import re
|
||||
|
||||
from fedireads import forms, models, books_manager, outgoing
|
||||
from fedireads.goodreads_import import GoodreadsCsv
|
||||
|
@ -370,6 +371,4 @@ def import_data(request):
|
|||
'success_count': len(results),
|
||||
'failures': failures,
|
||||
})
|
||||
else:
|
||||
return HttpResponseBadRequest()
|
||||
|
||||
return HttpResponseBadRequest()
|
||||
|
|
Loading…
Reference in a new issue