Refactor store service and store API
This commit is contained in:
parent
4a0cd402a8
commit
2ba1716fb5
2 changed files with 3 additions and 3 deletions
|
|
@ -3,7 +3,6 @@ from typing import Annotated, List, Optional, Union
|
|||
from uuid import UUID
|
||||
|
||||
from fastapi import APIRouter, Depends, HTTPException, Query
|
||||
|
||||
from langflow.services.auth import utils as auth_utils
|
||||
from langflow.services.database.models.user.user import User
|
||||
from langflow.services.deps import get_settings_service, get_store_service
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ from uuid import UUID
|
|||
|
||||
import httpx
|
||||
from httpx import HTTPError, HTTPStatusError
|
||||
from loguru import logger
|
||||
|
||||
from langflow.services.base import Service
|
||||
from langflow.services.store.exceptions import APIKeyError, FilterError, ForbiddenError
|
||||
from langflow.services.store.schema import (
|
||||
|
|
@ -18,7 +20,6 @@ from langflow.services.store.utils import (
|
|||
process_tags_for_post,
|
||||
update_components_with_user_data,
|
||||
)
|
||||
from loguru import logger
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from langflow.services.settings.service import SettingsService
|
||||
|
|
@ -231,7 +232,7 @@ class StoreService(Service):
|
|||
params: Dict[str, Any] = {
|
||||
"page": page,
|
||||
"limit": limit,
|
||||
"fields": ",".join(fields) if fields else ",".join(self.default_fields),
|
||||
"fields": ",".join(fields) if fields is not None else ",".join(self.default_fields),
|
||||
"meta": "filter_count", # !This is DEPRECATED so we should remove it ASAP
|
||||
}
|
||||
# ?aggregate[count]=likes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue