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.3k stars 285 forks source link

🪲 Discrepancy in program count #5199

Closed Felienne closed 2 months ago

Felienne commented 7 months ago

One more from the same school.

It seems teachers see a really different number of programs than students. Here is an example where that happens for user Sofie1bs:

IMG_7851

Other kids in the class also had counts over a hundred. But the teacher sees this:

image
Felienne commented 7 months ago

Maybe another small one for you @hasan-sh? No rush though, more of a palet cleanser between cypress tests and the translation pipeline?

hasan-sh commented 3 months ago

@Felienne could you explain what the problem here is?

Felienne commented 3 months ago

As explained in the images, the user shown has 147 programs in their own public page, but only 4 when seen from the teacher's view (I blacked out the names of the other students on the second picture, maybe that is confusing?)

On Tuesday, June 25, 2024, Hasan_sh @.***> wrote:

@Felienne https://github.com/Felienne could you explain what the problem here is?

— Reply to this email directly, view it on GitHub https://github.com/hedyorg/hedy/issues/5199#issuecomment-2188840247, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHVBJOKQ4GZZGPSOSNTQTDZJFQ6VAVCNFSM6AAAAABEBQ5J6SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBYHA2DAMRUG4 . You are receiving this because you were mentioned.Message ID: @.***>

hasan-sh commented 3 months ago

147 programs in their own public page, but only 4 when seen from the teacher's view

Correct! The problem was that in their public page, the created programs count is actually the account of how many times they run a program; run_programs property from the achievements table. I've changed that to work as the labels suggests; i.e., the number of created programs.