Skip to content

Assignment not showing in Grade me block #17

@sulaganathan

Description

@sulaganathan

hi,

We are using grade me block 3.1.0.2 on Moodle 3.1 and apparently the assignment which needs grading is not showing on grade me block. Upon further research I found that the query failed to choose the assignment on below condition

SELECT bgm.courseid, bgm.coursename, bgm.itemmodule, bgm.iteminstance, bgm.itemname, bgm.coursemoduleid, bgm.itemsortorder, asgn_sub.id submissionid, asgn_sub.userid, asgn_sub.status FROM mdl_assign_submission asgn_sub JOIN mdl_assign a ON a.id = asgn_sub.assignment LEFT JOIN mdl_block_grade_me bgm ON bgm.courseid = a.course AND bgm.iteminstance = a.id LEFT JOIN mdl_assign_grades ag ON ag.assignment = asgn_sub.assignment AND ag.userid = asgn_sub.userid AND asgn_sub.attemptnumber = ag.attemptnumber WHERE a.grade <> 0 AND (ag.id IS NULL OR asgn_sub.timemodified > ag.timemodified) AND bgm.courseid = 37333 AND bgm.itemmodule = 'assign' and bgm.iteminstance='177990

_asgn_sub.timemodified and ag.timemodified seems to be same date time so that query failed _

ag.timemodified is modified when ran the Moodle cron with the below record

id assignment userid timecreated timemodified grader grade attemptnumber
793 519 12 1485174949 1485174312 2 -1.00000 0

Please check and let us know the workaround

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions