Skip to content

Commit db66701

Browse files
committed
Fix bug in get lists api
1 parent b9c452a commit db66701

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lists/api.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,6 @@ def get(self, request: Request, *args, **kwargs):
7979
account_id = request.query_params.get("account")
8080
chain = request.query_params.get("chain", "NEAR")
8181
lists = lists.filter(chain__name=chain)
82-
if account_id:
83-
try:
84-
account = Chain.objects.get(name=account_id)
85-
lists = lists.filter(owner=account)
86-
except Account.DoesNotExist:
87-
return Response(
88-
{"message": f"Account with ID {account_id} not found."}, status=404
89-
)
9082
if account_id:
9183
try:
9284
account = Account.objects.get(id=account_id)

0 commit comments

Comments
 (0)