bdecentgmbh / moodle-block_dash

The interface and report builder for moodle
https://bdecent.de/dash
6 stars 4 forks source link

Completion Data Source – Progress does not show correct value #59

Closed stefanscholz closed 4 years ago

stefanscholz commented 4 years ago

The completion data source shows a wrong percentage:

There are 10 required activites in the course; the user has completed two actvities, i.e. it should be 20%, instead, is shows 0%.

Screenshot 2020-01-10 at 19 35 11

:

Screenshot 2020-01-10 at 19 35 57
moodledev commented 4 years ago

image

It's working for me. Did it refresh?

stefanscholz commented 4 years ago

No, it did not. Do I need to run a specific cron job for the calculation? I trigger the cron job every 5min.

stefanscholz commented 4 years ago

Oh, that's interesting: it says that there are 0 completion relevant activities in that course:

Screenshot 2020-01-10 at 20 41 31

Here's the completion criteria settings page:

Screenshot 2020-01-10 at 20 42 00
stefanscholz commented 4 years ago

Maybe that's related to the course being a "generated test course"? (The "s" stands for a "s" course created by the make test course tool)

UPDATE: no, it now displays 0 total activities for a manually created course as well.

moodledev commented 4 years ago

Strange you and I would have different results with simple courses. I have changed how this data is queried. Please try it again.

stefanscholz commented 4 years ago

Now it works !