bradunov / shkola

Shkola is a web framework for math exercises for primary school kids.
https://www.tatamata.org/
Other
2 stars 0 forks source link

Fix an issue with small lists #25

Closed bradunov closed 4 years ago

bradunov commented 4 years ago

When a list of all questions applicable to a test is too small, less than a number of questions to be asked in the text, the site fails. One example is: https://www.tatamata.org/main?op=test&q_id=&l_id=&year=drugi&theme=brojevi&subtheme=brojevni%20izrazi&period=jesen&difficulty=2&language=rs&design=dev Fix this.

bradunov commented 4 years ago

Changed the list selection algorithm and fixed it.