Skip to content

Commit

Permalink
More logging
Browse files Browse the repository at this point in the history
  • Loading branch information
allomanta committed Nov 24, 2024
1 parent d28bc1c commit bd941e8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
20 changes: 19 additions & 1 deletion IguideME.Web/Services/LMSHandlers/CanvasHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,25 @@ 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
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.242
appVersion: "0.3.242"
version: 0.3.243
appVersion: "0.3.243"

0 comments on commit bd941e8

Please sign in to comment.