Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
When a student completes a course, something happens in the database that makes their certificate available. What is it?
Post Body

I imagine it's some context value. Or combination of a course completion and a context value or something like that.

I have a bash script (I know, I know!) that takes incomplete CSVs of a student's quiz attempt from an old installation of moodle and does it's best to recreate a new quiz attempt, making educated guesses about the student's original responses. These quizes are the ONLY course activity required for a student to complete a course, receive a grade and download a certificate from the certificate module.

There's a whole story there that involves one of my clients being in litigation with their former web host, me being a DBA and linux admin with NO moodle experience at ALL, but who has built educational databases and applications before.

Anyway, I've gotten my script working, except that the certificates are hidden from students, so clearly I'm not correctly marking the courses as completed or something. As an admin, I'm able to view and download a certificate for an imported student, but when logged in as a student, Moodle says "this activity is hidden" when I try to download the certificate.

The whole point of doing this is so that students can download copies of certificates they were issued in 2012 or earlier (some of the quiz attempts are from as long ago as 2004) with correct dates and score totals on them. I'm at that point except for the certificates not being available.

What do I need to write into the database to make that happen?

I have asked this on the moodle forums to the sound of crickets. But I'm not surprised since very few people seem to REALLY understand the moodle database.

Author
Account Strength
100%
Account Age
15 years
Verified Email
Yes
Verified Flair
No
Total Karma
70,349
Link Karma
11,188
Comment Karma
58,740
Profile updated: 1 day ago
Posts updated: 9 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
11 years ago