Skip to content

Commit

Permalink
refactor library checker
Browse files Browse the repository at this point in the history
  • Loading branch information
Kara-Zor-El committed Dec 7, 2022
1 parent d16057e commit 93bed16
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions lib/providers/fetchCategories.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,22 +61,24 @@ Future<List<Map<String, dynamic>>> getServerCategories(context,

List<String> selected = [];
List<String> includedAutomatically = [
'Comics',
'comics',
'Books',
'book',
'comic book',
'book',
'books',
'Manga',
'comic books',
'manga',
'Comics & Graphic Novels',
'mangas',
'comics & graphic novels',
'Graphic Novels',
'graphic novels',
'Novels',
'graphic novel',
'novels',
'Novel',
'novel',
'ebook',
'ebooks',
];
for (var i = 0; i < categories.length; i++) {
if (includedAutomatically.contains(categories[i])) {
if (includedAutomatically.contains(categories[i].toLowerCase())) {
selected.add(categories[i]);
}
}
Expand Down

0 comments on commit 93bed16

Please sign in to comment.