mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 02:44:18 +00:00
Fix typo
This commit is contained in:
parent
f189460543
commit
0b0838f6e0
@ -71,7 +71,7 @@ class AddOCRJobForm(FlaskForm):
|
|||||||
class AddMergeImagesJobForm(FlaskForm):
|
class AddMergeImagesJobForm(FlaskForm):
|
||||||
files = MultipleFileField('Files', validators=[DataRequired()])
|
files = MultipleFileField('Files', validators=[DataRequired()])
|
||||||
|
|
||||||
def validate_files(form, filed):
|
def validate_files(form, field):
|
||||||
for file in field.data:
|
for file in field.data:
|
||||||
if not file.filename.lower().endswith(('.jpeg', '.jpg', '.png',
|
if not file.filename.lower().endswith(('.jpeg', '.jpg', '.png',
|
||||||
'.tiff', '.tif')):
|
'.tiff', '.tif')):
|
||||||
|
Loading…
Reference in New Issue
Block a user