Closed jamilkhalaf closed 6 months ago
reference
There is a bug in the setup of this lesson. The key values of the frq dictionary in the frqTemplates file are not being recognized which throws a key error.
--------------------------------------------------------------------------- KeyError Traceback (most recent call last) [<ipython-input-1-eb1d80d04ae7>](https://localhost:8080/#) in <cell line: 26>() 24 25 from frqTemplate import * ---> 26 create_frq_dictionary(get_data()) 27 2 frames [/content/frqTemplate.py](https://localhost:8080/#) in create_frq_dictionary(dictionary) 17 global frquestions, frqs 18 frquestions = dictionary ---> 19 frqs = create_frq_grids() 20 21 [/content/frqTemplate.py](https://localhost:8080/#) in create_frq_grids() 107 if isinstance(frquestions[key][1], str): 108 frqs[key] = [ --> 109 create_frq_string(frquestions, i), 110 create_expanded_button(frquestions[key][0], "primary", "550px"), 111 ] [/content/frqTemplate.py](https://localhost:8080/#) in create_frq_string(list, index, q_width) 86 """ 87 tooltip = f"Q%d" % index ---> 88 qlist = list[tooltip] 89 grid = GridspecLayout(1, 3, width=(str(250 + q_width) + "px")) 90 grid[0, 0] = create_expanded_button(qlist[0], "info", str(q_width) + "px") KeyError: 'Q1'
Pull request in progress, should fix the issue. Refer to request to see fixes
reference
There is a bug in the setup of this lesson. The key values of the frq dictionary in the frqTemplates file are not being recognized which throws a key error.