Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 174c6934 authored by Robin Tissot's avatar Robin Tissot
Browse files

Just trying to match this import look away.

parent 96ba83aa
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,7 @@ class Command(BaseCommand): ...@@ -53,7 +53,7 @@ class Command(BaseCommand):
order,page,regionNumber,x1Region,y1Region,x2Region,y2Region,lineNumber,x1line,y1line,x2line,y2line,fn,AT,GT2 = line.split('\t') order,page,regionNumber,x1Region,y1Region,x2Region,y2Region,lineNumber,x1line,y1line,x2line,y2line,fn,AT,GT2 = line.split('\t')
if fn != file_: if fn != file_:
# part = self.grab(ftp, fn.replace('.jpg', '.tif')) # part = self.grab(ftp, fn.replace('.jpg', '.tif'))
part = DocumentPart.objects.get(image__contains=fn, document=self.document) part = DocumentPart.objects.get(image__contains=fn.split('__')[1], document=self.document)
part.lines.all().delete() part.lines.all().delete()
part.blocks.all().delete() part.blocks.all().delete()
block = Block.objects.get_or_create(document_part=part,box=(x1Region,y1Region,x2Region,y2Region)) block = Block.objects.get_or_create(document_part=part,box=(x1Region,y1Region,x2Region,y2Region))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment