Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip committed Nov 9, 2023
1 parent 822edde commit dbfe380
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions gradesync.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ public static function get_all_grades_for_user(stdClass $mumie, int $userid) : ?
*/
private static function xapi_to_moodle_grade($xapigrade) : stdClass {
$grade = new stdClass();
error_log($xapigrade);
$sync_id = self::get_mumie_user_from_sync_id($xapigrade->actor->account->name);
$grade->userid = $sync_id->get_moodle_id();
$grade->rawgrade = 100 * $xapigrade->result->score->raw;
Expand All @@ -204,7 +203,6 @@ private static function xapi_to_moodle_grade($xapigrade) : stdClass {
* @throws \dml_exception
*/
private static function get_mumie_user_from_sync_id(string $syncid): ?mumie_user {
error_log($syncid);
$mumieid = substr(strrchr($syncid, "_"), 1);
return mumie_user_service::get_user_from_mumie_id($mumieid);
}
Expand Down

0 comments on commit dbfe380

Please sign in to comment.