Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix Table Index offset #113

Merged
merged 2 commits into from
Jul 28, 2024
Merged

fix Table Index offset #113

merged 2 commits into from
Jul 28, 2024

Conversation

Bluesy1
Copy link
Collaborator

@Bluesy1 Bluesy1 commented Jul 28, 2024

See attached traceback for context:

$ pbs-cli checkq ./instructor_stats_bank/source/unsorted/openstax_C8_Q101/openstax_C8_Q101.md
Processing question: instructor_stats_bank/source/unsorted/openstax_C8_Q101/openstax_C8_Q101.md
There is an error in this problem: 
        - File path: instructor_stats_bank/source/unsorted/openstax_C8_Q101/openstax_C8_Q101.md
        - Error: Error in running the server code, please review the below traceback: 

Traceback (most recent call last):
  File "/home/gavin/OPB/problem_bank_scripts/src/problem_bank_scripts/problem_bank_scripts.py", line 1398, in process_question_pl
    server["generate"](data2)
  File "/tmp/tmpyujhwt5s_openstax_C8_Q101/server.py", line 22, in generate
    data2["params"]["table1"] = pbh.create_html_table(table2, width="550px", first_row_is_header=True, first_col_is_header=False,)
                                                      ^^^^^^
NameError: name 'table2' is not defined. Did you mean: 'table1'?

@Bluesy1 Bluesy1 merged commit 6fdf4a5 into main Jul 28, 2024
15 checks passed
@Bluesy1 Bluesy1 deleted the tui-fixes branch July 28, 2024 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant