Skip to content

Commit 0995b86

Browse files
committed
Fixed typo.
1 parent 6c69ec5 commit 0995b86

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Sources/SwiftVue/Attendance/Attendance.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ public struct Attendance: Hashable, Codable, Identifiable {
1919
public var totalTardies: [PeriodTotal]
2020
public var totalUnexcused: [PeriodTotal]
2121
public var totalActivities: [PeriodTotal]
22-
public var TotalUnexcusedTardies: [PeriodTotal]
22+
public var totalUnexcusedTardies: [PeriodTotal]
2323

24-
public init(id: UUID = UUID(), type: String, startPeriod: String, endPeriod: String, periodCount: Int, schoolName: String, absences: [Absence], totalExcused: [PeriodTotal], totalTardies: [PeriodTotal], totalUnexcused: [PeriodTotal], totalActivities: [PeriodTotal], TotalUnexcusedTardies: [PeriodTotal]) {
24+
public init(id: UUID = UUID(), type: String, startPeriod: String, endPeriod: String, periodCount: Int, schoolName: String, absences: [Absence], totalExcused: [PeriodTotal], totalTardies: [PeriodTotal], totalUnexcused: [PeriodTotal], totalActivities: [PeriodTotal], totalUnexcusedTardies: [PeriodTotal]) {
2525
self.id = id
2626
self.type = type
2727
self.startPeriod = startPeriod
@@ -33,7 +33,7 @@ public struct Attendance: Hashable, Codable, Identifiable {
3333
self.totalTardies = totalTardies
3434
self.totalUnexcused = totalUnexcused
3535
self.totalActivities = totalActivities
36-
self.TotalUnexcusedTardies = TotalUnexcusedTardies
36+
self.totalUnexcusedTardies = totalUnexcusedTardies
3737
}
3838

3939
internal init?(attributes: [String: String]) {
@@ -48,7 +48,7 @@ public struct Attendance: Hashable, Codable, Identifiable {
4848
do {
4949
let periodCount = try Int(periodCountAttribute, format: .number)
5050

51-
self.init(type: typeAttribute, startPeriod: startPeriodAttribute, endPeriod: endPeriodAttribute, periodCount: periodCount, schoolName: schoolNameAttribute, absences: [], totalExcused: [], totalTardies: [], totalUnexcused: [], totalActivities: [], TotalUnexcusedTardies: [])
51+
self.init(type: typeAttribute, startPeriod: startPeriodAttribute, endPeriod: endPeriodAttribute, periodCount: periodCount, schoolName: schoolNameAttribute, absences: [], totalExcused: [], totalTardies: [], totalUnexcused: [], totalActivities: [], totalUnexcusedTardies: [])
5252
} catch {
5353
return nil
5454
}

Sources/SwiftVue/Attendance/AttendanceParser.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public class AttendanceParser: NSObject, XMLParserDelegate {
9696
self.attendance?.totalActivities = periodTotals
9797
self.periodTotals = []
9898
case "TotalUnexcusedTardies":
99-
self.attendance?.TotalUnexcusedTardies = periodTotals
99+
self.attendance?.totalUnexcusedTardies = periodTotals
100100
self.periodTotals = []
101101
default:
102102
return

0 commit comments

Comments
 (0)