🔥 refactor(service.py): remove unnecessary code that pops "page" and "limit" parameters from params dictionary

The code was removing "page" and "limit" parameters from the params dictionary, but these parameters were not being used afterwards. Removing this unnecessary code improves code readability and maintainability.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-10-30 20:42:33 -03:00
commit 5ebd298463

View file

@ -176,9 +176,6 @@ class StoreService(Service):
f"{self.base_url}/users/me", api_key, params={"fields": "id"}
)
params["filter"] = json.dumps({"user_created": {"_eq": user_data["id"]}})
# Get the
params.pop("page", None)
params.pop("limit", None)
params["fields"] = ["id"]
else: