1
0
Fork 0
mirror of https://github.com/qurator-spk/dinglehopper.git synced 2025-06-09 11:50:00 +02:00

🧹 dinglehopper: Replace XXX with an actual comment

This commit is contained in:
Gerber, Mike 2020-06-12 20:24:58 +02:00
parent 37edc0336f
commit 8c5f7c73d5

View file

@ -56,9 +56,8 @@ def gen_diff_report(gt_in, ocr_in, css_prefix, joiner, none):
if isinstance(gt_in, ExtractedText): if isinstance(gt_in, ExtractedText):
gt_id = gt_in.segment_id_for_pos(g_pos) if g is not None else None gt_id = gt_in.segment_id_for_pos(g_pos) if g is not None else None
ocr_id = ocr_in.segment_id_for_pos(o_pos) if o is not None else None ocr_id = ocr_in.segment_id_for_pos(o_pos) if o is not None else None
# XXX note that deletions and inserts only produce one id + None, UI must # Deletions and inserts only produce one id + None, UI must
# support this, i.e. display for the one id produced # support this, i.e. display for the one id produced
# XXX otherwise, it should always display for BOTH ids
gtx += joiner + format_thing(g, css_classes, gt_id) gtx += joiner + format_thing(g, css_classes, gt_id)
ocrx += joiner + format_thing(o, css_classes, ocr_id) ocrx += joiner + format_thing(o, css_classes, ocr_id)