Skip to content

Commit

Permalink
🚧 don't sort
Browse files Browse the repository at this point in the history
Signed-off-by: ff137 <[email protected]>
  • Loading branch information
ff137 committed Aug 30, 2024
1 parent 9f7cad6 commit 73b7683
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions aries_cloudagent/multitenant/admin/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
from ...wallet.models.wallet_record import WalletRecord, WalletRecordSchema
from ..error import WalletKeyMissingError

logger = logging.getLogger(__name__)

ACAPY_LIFECYCLE_CONFIG_FLAG_MAP = {
"ACAPY_AUTO_ACCEPT_INVITES": "debug.auto_accept_invites",
"ACAPY_AUTO_ACCEPT_REQUESTS": "debug.auto_accept_requests",
Expand Down Expand Up @@ -388,9 +386,7 @@ async def wallets_list(request: web.BaseRequest):
if wallet_name:
query["wallet_name"] = wallet_name

logger.info(f">>> REQUEST QUERY DESCENDING: {request.query.get("descending")}")
limit, offset, order_by, descending = get_paginated_query_params(request)
logger.info(f">>> PARSED DESCENDING VALUE: {descending}")

try:
async with profile.session() as session:
Expand All @@ -403,7 +399,6 @@ async def wallets_list(request: web.BaseRequest):
descending=descending,
)
results = [format_wallet_record(record) for record in records]
# results.sort(key=lambda w: w["created_at"])
except (StorageError, BaseModelError) as err:
raise web.HTTPBadRequest(reason=err.roll_up) from err

Expand Down
1 change: 0 additions & 1 deletion aries_cloudagent/protocols/connections/v1_0/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,6 @@ async def connections_list(request: web.BaseRequest):
alt=True,
)
results = [record.serialize() for record in records]
results.sort(key=connection_sort_key)
except (StorageError, BaseModelError) as err:
raise web.HTTPBadRequest(reason=err.roll_up) from err

Expand Down

0 comments on commit 73b7683

Please sign in to comment.