Skip to content

Commit

Permalink
fix models
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrossh committed May 31, 2024
1 parent 26d5960 commit 2f1f549
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/models.dart
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ List<Book> parseBible(String bibleName, String text) {
continue;
}
final arr = line.split("|");
final book = int.parse(arr[0])-1;
final chapter = int.parse(arr[1])-1;
final verseNo = int.parse(arr[2])-1;
final heading = "";
final verseText = arr.sublist(3, arr.length).join("|");
final book = int.parse(arr[0]);
final chapter = int.parse(arr[1]);
final verseNo = int.parse(arr[2]);
final heading = arr[3];
final verseText = arr.sublist(4, arr.length).join("|");
if (books.length < book + 1) {
books.add(
Book(
Expand Down

0 comments on commit 2f1f549

Please sign in to comment.