Hedy is a gradual programming language to teach children programming. Gradual languages use different language levels, where each level adds new concepts and syntactic complexity. At the end of the Hedy level sequence, kids master a subset of syntactically valid Python.
While working on another PR I found out that a new user that tries to create a class has to wait a lot of time for their first class to show. This happens because the showAchievements functions has some timeouts of 6 seconds, so the user, as a minimum has to wait this long if they get an achievement.
Therefore I reduced the time of the achievements a bit.
How to test
Log in as teacher3
Create a class
The class shouldn't take ages to load
Other way to test:
Log in as teacher1
Duplicate a class
The for teachers page should reload quickly
You can try that on main and see the difference (remember to clear the site data and restore the devdb in order for the achievement to be shown again)
Thank you for contributing! Your pull request is now going on the merge train (choo choo! Do not click update from main anymore, and be sure to allow changes to be pushed to your fork).
While working on another PR I found out that a new user that tries to create a class has to wait a lot of time for their first class to show. This happens because the
showAchievements
functions has some timeouts of 6 seconds, so the user, as a minimum has to wait this long if they get an achievement.Therefore I reduced the time of the achievements a bit.
How to test
Other way to test:
You can try that on
main
and see the difference (remember to clear the site data and restore the devdb in order for the achievement to be shown again)