hedyorg / hedy

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.
https://www.hedy.org
European Union Public License 1.2
1.26k stars 281 forks source link

🪲 Initialize DB tables on app inizialitation #5609

Open jpelay opened 2 weeks ago

jpelay commented 2 weeks ago

Describe the bug On #4862 I did a little hack by setting the DEBUG_MODE variable before main is executed. This is not ideal and @rix0rrr suggested a better alternative:

I think the better solution is probably to control the initialization order of all these things better, by making the tables class members of Database and initializing it when the app is created