open-resources / physics_bank

Open Physics Problem Bank
https://firas.moosvi.com/oer/physics_bank
Other
3 stars 1 forks source link

Question titles not displaying correctly #67

Closed KafkaNoNeko closed 1 year ago

KafkaNoNeko commented 1 year ago

Some questions have the following error because the title was not stored in the dictionary (since the questions work fine on PL, a lot of this went unnoticed):

image

firasm commented 1 year ago

Thanks for pointing this out - good catch.

@nich-rees can I ask you to do a single PR with the question titles for all the ones that are missing?

You can find them here: https://firas.moosvi.com/oer/physics_bank/files/home.html

There will be some sleuthing required to actually track down the questions first, but the error messages should give you some hints about where to find it:

System Message: ERROR/3 ( /home/runner/work/physics_bank/physics_bank/content/public/004.Kinematics(1D)/Motion Diagrams/position_graph/position_graph.md , line 79)

Substitution error:UndefinedError: ‘dict object’ has no attribute ‘vars’

The issue is that the title is not stored in the data dictionary.

firasm commented 1 year ago

This is now solved.