Skip to content

Commit

Permalink
fix: schedule loading from storage (#1315)
Browse files Browse the repository at this point in the history
  • Loading branch information
limwa authored Sep 6, 2024
2 parents e20681e + 8cbeba2 commit f168bef
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class AppLecturesDatabase extends AppDatabase<List<Lecture>> {
);
static const createScript = '''
CREATE TABLE lectures(subject TEXT, typeClass TEXT,
startTime TEXT,endTime TEXT, blocks INTEGER, room TEXT, teacher TEXT, classNumber TEXT, occurrId INTEGER)''';
startTime TEXT, endTime TEXT, blocks INTEGER, room TEXT, teacher TEXT, classNumber TEXT, occurrId INTEGER)''';

/// Returns a list containing all of the lectures stored in this database.
Future<List<Lecture>> lectures() async {
Expand All @@ -31,7 +31,7 @@ CREATE TABLE lectures(subject TEXT, typeClass TEXT,
return Lecture.fromApi(
maps[i]['subject'] as String,
maps[i]['typeClass'] as String,
DateTime.parse(maps[i]['startDateTime'] as String),
DateTime.parse(maps[i]['startTime'] as String),
maps[i]['blocks'] as int,
maps[i]['room'] as String,
maps[i]['teacher'] as String,
Expand Down

0 comments on commit f168bef

Please sign in to comment.