mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-23 07:28:08 +00:00
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 '''
|
''' handles all the activity coming out of the server '''
|
||||||
|
from urllib.parse import urlencode
|
||||||
|
|
||||||
from django.db import IntegrityError, transaction
|
from django.db import IntegrityError, transaction
|
||||||
from django.http import HttpResponseNotFound, JsonResponse
|
from django.http import HttpResponseNotFound, JsonResponse
|
||||||
from django.views.decorators.csrf import csrf_exempt
|
from django.views.decorators.csrf import csrf_exempt
|
||||||
import requests
|
import requests
|
||||||
from urllib.parse import urlencode
|
|
||||||
|
|
||||||
from fedireads import activitypub
|
from fedireads import activitypub
|
||||||
from fedireads import models
|
from fedireads import models
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
''' views for actions you can take in the application '''
|
''' 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 import authenticate, login, logout
|
||||||
from django.contrib.auth.decorators import login_required
|
from django.contrib.auth.decorators import login_required
|
||||||
from django.http import HttpResponseBadRequest, HttpResponseNotFound
|
from django.http import HttpResponseBadRequest, HttpResponseNotFound
|
||||||
from django.shortcuts import redirect
|
from django.shortcuts import redirect
|
||||||
from django.template.response import TemplateResponse
|
from django.template.response import TemplateResponse
|
||||||
from io import TextIOWrapper
|
|
||||||
import re
|
|
||||||
|
|
||||||
from fedireads import forms, models, books_manager, outgoing
|
from fedireads import forms, models, books_manager, outgoing
|
||||||
from fedireads.goodreads_import import GoodreadsCsv
|
from fedireads.goodreads_import import GoodreadsCsv
|
||||||
|
@ -370,6 +371,4 @@ def import_data(request):
|
||||||
'success_count': len(results),
|
'success_count': len(results),
|
||||||
'failures': failures,
|
'failures': failures,
|
||||||
})
|
})
|
||||||
else:
|
|
||||||
return HttpResponseBadRequest()
|
return HttpResponseBadRequest()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue