Skip to content

Commit

Permalink
Fix regression introduced by (#473)
Browse files Browse the repository at this point in the history
* Fix aggregate filter by keys
  • Loading branch information
aliel committed Feb 19, 2024
1 parent 23eea67 commit ef08b9d
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/aleph/web/controllers/aggregates.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
import logging
import datetime as dt
from typing import List, Optional, Any, Dict, Tuple, Literal, Sequence
import logging
from typing import Dict, List, Optional

from aiohttp import web
from pydantic import BaseModel, validator, ValidationError
from aleph.db.accessors.aggregates import get_aggregates_by_owner, refresh_aggregate
from aleph.db.models import AggregateDb
from pydantic import BaseModel, ValidationError, validator
from sqlalchemy import select

from aleph.db.accessors.aggregates import (
get_aggregates_by_owner,
refresh_aggregate,
)
from aleph.db.models import AggregateDb
from .utils import LIST_FIELD_SEPARATOR

LOGGER = logging.getLogger(__name__)
Expand Down Expand Up @@ -62,7 +59,8 @@ async def address_aggregate(request: web.Request) -> web.Response:

aggregates = list(
get_aggregates_by_owner(
session=session, owner=address, with_info=query_params.with_info
session=session, owner=address,
with_info=query_params.with_info, keys=query_params.keys
)
)

Expand Down

0 comments on commit ef08b9d

Please sign in to comment.