Quantcast
Channel: Assignment
Viewing all articles
Browse latest Browse all 9645

Re: Automatic grading

$
0
0
by mart van der niet.  

Hi Tim,

 

I've been looking into this, and I seem to be near a solution:

  • have a PHP script run as a cronjob say every 15 minutes
  • script looks for submissions that have not a grade
    (I misuse the groupid field in mdl_assign_submission as I do not use groupsubmissions.
    All submissions that not have a value form this field of '99999' are submissions that have not dealt with by my script. At the end of the script I set this field to '99999')
  • For a submission that is new from the last time the script has run (indicated by the groupid field not yet set to '99999'
    • insert a record into mdl_assign_grades with the correct values
    • insert a record into mdl_assign_user_flags with the correct values
    • update mdl_grade_grades with the correct values
    • update the timemodified timestamp in mdl_grade_items

This works, for instance when you want to sent a message/email to your user with feedback.

When however you have in your course an item that is hidden, and will be only revealed after grading, such an item is only show after purging all caches. This is obviously not what you want, so I'd like to invite someone to explain to me how to selectively purge the cache that holds assignment data!


Viewing all articles
Browse latest Browse all 9645

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>