G'day,
I've written a python script to generate a specific report out of the Moodle database for quiz attempts, and I need a way to trigger it from Moodle if possible.
I can run it from a command line, or a URL (I'd prefer a command line, but URL if necessary) - is there an easy-ish way to get moodle to run something like this when a quiz is completed (ie, when a candidate presses the "submit, yes, really, submit" button? And pass some arguments? I'd much rather this than run a cron job to check the database for recently completed quizzes, but if that's the only way, so be it.
Thank you!
Carl