Skip to content

Commit

Permalink
🐛 Fixes error occured when subject doesn't have time data
Browse files Browse the repository at this point in the history
  • Loading branch information
iqfareez committed Nov 24, 2024
1 parent 877a9d8 commit 51fc0c3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.4.2

- :bug: Fixes error that occured when subject doesn't have time info. Fixes issue [#11](https://github.com/iiumschedule/albiruni/issues/11)

## 1.4.1

- :bug: Fix issue where some compounded days format (eg: `TWTH`) could not be parse. See [#8](https://github.com/iiumschedule/albiruni/issues/8), [#10](https://github.com/iiumschedule/albiruni/issues/10)
Expand Down
2 changes: 1 addition & 1 deletion lib/src/util/parse_albiruni_html.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Subject parseSubject(Element element) {

List<DayTime?> dayTime = [];
// Only process day & time if they're exist
if (day.isNotEmpty) {
if (day.isNotEmpty && time.isNotEmpty) {
List<TempDayTime> tempDayTime = [];

// Combine the day & time into DayTime object
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: albiruni
description: A wrapper to easily access IIUM's Course Schedule data.
version: 1.4.1
version: 1.4.2
repository: https://github.com/iqfareez/albiruni
issue_tracker: https://github.com/iqfareez/albiruni/issues
topics:
Expand Down

0 comments on commit 51fc0c3

Please sign in to comment.