Skip to content
Snippets Groups Projects
Commit ec1b4728 authored by Jamy Mahabier's avatar Jamy Mahabier
Browse files

Rename pdf_helper.py to scan_helper.py

...in preparation of introducing the PDF generation helper, otherwise
the naming would get confusing.
parent 3a3d2652
No related branches found
No related tags found
No related merge requests found
File moved
......@@ -9,7 +9,7 @@ from werkzeug.datastructures import FileStorage
from pony import orm
from ..models import db, Exam, PDF
from ..helpers import pdf_helper
from ..helpers import scan_helper
class Pdfs(Resource):
"""Getting a list of uploaded PDFs, and uploading new ones."""
......@@ -84,7 +84,7 @@ class Pdfs(Resource):
# of forking.
args = (pdf.id, app.config['DATA_DIRECTORY'])
ctx = multiprocessing.get_context('spawn')
ctx.Process(target=pdf_helper.process_pdf, args=args).start()
ctx.Process(target=scan_helper.process_pdf, args=args).start()
return {
'id': pdf.id,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment