Skip to content

Commit

Permalink
Added support for interaction section
Browse files Browse the repository at this point in the history
  • Loading branch information
cip999 committed Jan 14, 2023
1 parent c668be1 commit af327c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions p2d/parse_polygon_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ def parse_samples_explanations(notes):
exit(1)
assert(test_id != -1)
assert(test_id not in explanations)
curr = curr[0].upper() + curr[1:] # Capitalize first letter.
explanations[test_id] = curr
explanations[test_id] = curr.capitalize() # Capitalize first letter.
curr = ''
test_id = -1
elif test_id != -1:
Expand Down Expand Up @@ -119,6 +118,7 @@ def pol_path(*path):
problem['statement']['legend'] = statement_json['legend']
problem['statement']['input'] = statement_json['input']
problem['statement']['output'] = statement_json['output']
problem['statement']['interaction'] = statement_json['interaction']
problem['statement']['tutorial'] = statement_json['tutorial']
explanations = parse_samples_explanations(statement_json['notes'])

Expand Down

0 comments on commit af327c2

Please sign in to comment.