Skip to content
Snippets Groups Projects
Commit b03b8f29 authored by felixwelter's avatar felixwelter
Browse files

Remove unused argument for BasicIndexer

parent a38f5e97
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ def upload():
if 'files' in request.files:
files = request.files.getlist('files')
index = Index(index_dir=INDEX_DIR)
indexer = BasicIndexer(index, IMAGE_DIR, SLIDE_DIR)
indexer = BasicIndexer(index, IMAGE_DIR)
for i, file in enumerate(files):
if file.filename != '':
if file and allowed_file(file.filename):
......
......@@ -6,10 +6,9 @@ import pdfplumber
class BasicIndexer():
"""Add a single pdf file to the index"""
def __init__(self, index, image_dir, slide_dir):
def __init__(self, index, image_dir):
self.index = index
self.image_dir = image_dir
self.slide_dir = slide_dir
self.process_images = True
self.title_row = 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment