Move magic number variable to the literls.py module
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
DEFAULT_OCR_FILE_FORMAT = u'tiff'
|
||||
DEFAULT_OCR_FILE_EXTENSION = u'tif'
|
||||
LOCK_EXPIRE = 60 * 10 # Adjust to worst case scenario
|
||||
UNPAPER_FILE_FORMAT = u'ppm'
|
||||
|
||||
@@ -12,10 +12,10 @@ from lock_manager import Lock, LockError
|
||||
from mayan.celery import app
|
||||
|
||||
from .api import do_document_ocr
|
||||
from .literals import LOCK_EXPIRE
|
||||
from .models import DocumentQueue, QueueDocument
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
LOCK_EXPIRE = 60 * 10 # Adjust to worst case scenario
|
||||
|
||||
|
||||
@app.task(ignore_result=True)
|
||||
|
||||
Reference in New Issue
Block a user