Skip to content

Commit

Permalink
fix search
Browse files Browse the repository at this point in the history
  • Loading branch information
ksh-b committed Mar 24, 2024
1 parent 7f28ad0 commit 7bc42d5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/brain/article_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,18 @@ class ArticleProvider {
: page;

if (query != null) {
await worker.parseArticles(subscription.publisher, page_, subscription.category, true)
await worker.parseArticles(subscription.publisher, page_, query, true)
.then((articles) {
var x = articles as Set<NewsArticle>;
collectPublisherArticles(
subscriptionArticles, x, subscription, page);
if (articles is Set<NewsArticle>) {
collectPublisherArticles(subscriptionArticles, articles, subscription, page);
}
});
} else {

await worker.parseArticles(subscription.publisher, page_, subscription.category, false)
.then((articles) {
var x = articles as Set<NewsArticle>;
collectPublisherArticles(subscriptionArticles, x, subscription, page);
if (articles is Set<NewsArticle>) {
collectPublisherArticles(subscriptionArticles, articles, subscription, page);
}
});
}
}
Expand Down

0 comments on commit 7bc42d5

Please sign in to comment.