mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
reorder imports
Signed-off-by: florian on nixos (Florian Brandes) <florian.brandes@posteo.de>
This commit is contained in:
parent
b227427916
commit
911f5bc78e
@ -1,4 +1,7 @@
|
|||||||
import logging
|
import logging
|
||||||
|
import os
|
||||||
|
import shutil
|
||||||
|
import tempfile
|
||||||
|
|
||||||
import tqdm
|
import tqdm
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
@ -14,15 +17,11 @@ from documents.models import Document
|
|||||||
from documents.models import DocumentType
|
from documents.models import DocumentType
|
||||||
from documents.models import Tag
|
from documents.models import Tag
|
||||||
from documents.sanity_checker import SanityCheckFailedException
|
from documents.sanity_checker import SanityCheckFailedException
|
||||||
from whoosh.writing import AsyncWriter
|
|
||||||
|
|
||||||
# barcode decoder
|
|
||||||
import os
|
|
||||||
from pyzbar import pyzbar
|
|
||||||
from pdf2image import convert_from_path
|
from pdf2image import convert_from_path
|
||||||
import tempfile
|
|
||||||
from pikepdf import Pdf
|
from pikepdf import Pdf
|
||||||
import shutil
|
from pyzbar import pyzbar
|
||||||
|
from whoosh.writing import AsyncWriter
|
||||||
|
# barcode decoder
|
||||||
|
|
||||||
logger = logging.getLogger("paperless.tasks")
|
logger = logging.getLogger("paperless.tasks")
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import os
|
import os
|
||||||
|
import tempfile
|
||||||
from unittest import mock
|
from unittest import mock
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
@ -12,9 +13,7 @@ from documents.models import Tag
|
|||||||
from documents.sanity_checker import SanityCheckFailedException
|
from documents.sanity_checker import SanityCheckFailedException
|
||||||
from documents.sanity_checker import SanityCheckMessages
|
from documents.sanity_checker import SanityCheckMessages
|
||||||
from documents.tests.utils import DirectoriesMixin
|
from documents.tests.utils import DirectoriesMixin
|
||||||
|
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
import tempfile
|
|
||||||
|
|
||||||
|
|
||||||
class TestTasks(DirectoriesMixin, TestCase):
|
class TestTasks(DirectoriesMixin, TestCase):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user