Skip to content

Commit

Permalink
Merge pull request #39 from reply2future/bugfix/#38_freshrss_api_broken
Browse files Browse the repository at this point in the history
Bugfix/#38 freshrss api broken
  • Loading branch information
reply2future authored Jun 13, 2024
2 parents e488904 + 87a4a6c commit 7bdf6d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Controllers/assistantController.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public static function buildNewsContent(string $field, array $news)

private function getNews(int $cat_id = 0, int $state = FreshRSS_Entry::STATE_NOT_READ, int $limit = 30)
{
$generator = $this->entryDAO->listWhere(self::NEWS_CATEGORY_TYPE, $cat_id, $state, 'DESC', $limit, '', null);
$generator = $this->entryDAO->listWhere(self::NEWS_CATEGORY_TYPE, $cat_id, $state, 'DESC', $limit);
$result = array();
foreach ($generator as $entry) {
$result[] = $entry->toArray();
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "News Assistant",
"author": "Mervyn Zhan",
"description": "Using the ai api of `OpenAI`, `Anthropic`, `Groq` by [Portkey-AI/gateway](https://github.com/Portkey-AI/gateway/) to summary the news.",
"version": "0.11.1",
"version": "0.11.2",
"entrypoint": "NewsAssistant",
"type": "system"
}

0 comments on commit 7bdf6d8

Please sign in to comment.