Skip to content

Commit

Permalink
More debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
allomanta committed Nov 24, 2024
1 parent bd941e8 commit c8a5b16
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 22 deletions.
20 changes: 1 addition & 19 deletions IguideME.Web/Services/LMSHandlers/CanvasHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,25 +138,7 @@ public IEnumerable<User> GetAdministrators(int courseID)

/// <inheritdoc />
public IEnumerable<AppAssignment> GetAssignments(int courseID)
{

foreach (Assignment ass in Connector
.FindCourseById(courseID)
.Assignments.Where(assignment => assignment != null))
{
if (ass.Name == "MFL - Assignment 2 - Week 2 (Ch 4, 5, 6) BONUS" || ass.Name == "MFL - Assignment 1 - Week 1 (Chapter 1, 2, 3) BONUS" || ass.Name == "MFL - Assignment 3 - Week 3 (Ch 7, 8) BONUS")
{
_logger.LogInformation("Found assignment");
ass.Submissions.ForEach(sub =>
{
_logger.LogInformation("Found submission: {} {}", sub.UserID, sub.Grade);

}
);

}

}
{
return Connector
.FindCourseById(courseID)
.Assignments.Where(assignment => assignment != null)
Expand Down
3 changes: 2 additions & 1 deletion IguideME.Web/Services/Workers/AssignmentWorker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ public void Start()
this._courseID,
users
);
_logger.LogInformation("submission length: {}", submissions.Count());
_logger.LogInformation("submissions: {}", submissions);

Dictionary<int, (double, AppGradingType)> gradingTypes = new();
List<AssignmentSubmission> assignmentSubmissionsWithTiles = new();
Expand All @@ -109,7 +111,6 @@ public void Start()
// We register the internal assignmentID in the submission entity, this is to support external data
foreach (AssignmentSubmission sub in submissions)
{
_logger.LogInformation("submission: {} {}", sub.UserID, sub.RawGrade);
if (sub.AssignmentID == assignment.ExternalID)
{
sub.AssignmentID = assignment.ID;
Expand Down
4 changes: 2 additions & 2 deletions charts/iguideme/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: iguideme
description: IguideME
type: application
version: 0.3.243
appVersion: "0.3.243"
version: 0.3.244
appVersion: "0.3.244"

0 comments on commit c8a5b16

Please sign in to comment.