Skip to content

Commit 2490b9b

Browse files
committed
Fix key error when reading values from 150Q form
Fixes #34 Adds a set of test data for 150-question form
1 parent de36357 commit 2490b9b

File tree

4 files changed

+1
-1
lines changed

4 files changed

+1
-1
lines changed

code/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
field_fill_percents[form_code_field]) or ""
116116
keys_results.add(field_data, answers)
117117
else:
118-
for field in grid_i.Field:
118+
for field in form_variant.fields.keys():
119119
field_value = grid_r.read_field_as_string(
120120
field, grid, threshold, form_variant,
121121
field_fill_percents[field])

examples/150-question-sheet/a.jpg

635 KB
Loading
633 KB
Loading

examples/150-question-sheet/b.jpg

635 KB
Loading

0 commit comments

Comments
 (0)