Skip to content
Snippets Groups Projects
Commit d4488bc2 authored by Erwan Rouchet's avatar Erwan Rouchet
Browse files

Fixed stuff while testing

parent 974a425a
No related branches found
No related tags found
1 merge request!22Add score to transcriptions
......@@ -158,7 +158,7 @@ class ManifestsImporter(ABC):
stream.seek(0)
self.parse_manifest(stream)
break
elif value == 'sc:AnnotationList' and not self.annotations:
elif value == 'sc:AnnotationList' and self.annotations:
stream.seek(0)
self.parse_annotation_list(stream)
break
......
......@@ -46,7 +46,7 @@ class Command(BaseCommand):
root_logger.setLevel(logging.DEBUG)
# Handle mask
if options['mask'] is not None and options['regex'] is not None:
if options['mask'] is not None and options['regex'] != IndexImporter.DEFAULT_MASK:
raise CommandError('--mask and --regex cannot be used simultaneously.')
mask_regex = options['regex']
......
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