marzban 0.2.6__tar.gz → 0.2.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: marzban
3
- Version: 0.2.6
3
+ Version: 0.2.7
4
4
  Summary: Асинхронная библиотека Python для взаимодействия с MarzbanAPI
5
5
  Home-page: https://github.com/sm1ky/marzban_api
6
6
  Author: Artem
@@ -59,4 +59,4 @@ __all__ = (
59
59
  "ValidationError",
60
60
  )
61
61
 
62
- __version__ = "0.2.6"
62
+ __version__ = "0.2.7"
@@ -14,7 +14,7 @@ class MarzbanAPI:
14
14
  async def _request(self, method: str, url: str, token: Optional[str] = None, data: Optional[BaseModel] = None, params: Optional[Dict[str, Any]] = None) -> httpx.Response:
15
15
  headers = self._get_headers(token) if token else {}
16
16
  json_data = data.model_dump(exclude_none=True) if data else None
17
- params = [param for param in (params or []) if param is not None]
17
+ params = {k: v for k, v in (params or {}).items() if v is not None}
18
18
  response = await self.client.request(method, url, headers=headers, json=json_data, params=params)
19
19
  response.raise_for_status()
20
20
  return response
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: marzban
3
- Version: 0.2.6
3
+ Version: 0.2.7
4
4
  Summary: Асинхронная библиотека Python для взаимодействия с MarzbanAPI
5
5
  Home-page: https://github.com/sm1ky/marzban_api
6
6
  Author: Artem
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
5
5
 
6
6
  setup(
7
7
  name="marzban",
8
- version="0.2.6",
8
+ version="0.2.7",
9
9
  packages=find_packages(),
10
10
  install_requires=[
11
11
  "httpx>=0.23.0",
File without changes
File without changes
File without changes
File without changes