mss-python 0.1.8__tar.gz → 0.2.0__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.
Files changed (22) hide show
  1. {mss_python-0.1.8 → mss_python-0.2.0}/PKG-INFO +1 -1
  2. {mss_python-0.1.8 → mss_python-0.2.0}/src/mss_python/_version.py +2 -2
  3. {mss_python-0.1.8 → mss_python-0.2.0}/src/mss_python/client.py +2 -2
  4. {mss_python-0.1.8 → mss_python-0.2.0}/src/mss_python.egg-info/PKG-INFO +1 -1
  5. {mss_python-0.1.8 → mss_python-0.2.0}/.flake8 +0 -0
  6. {mss_python-0.1.8 → mss_python-0.2.0}/.github/workflows/python-publish.yml +0 -0
  7. {mss_python-0.1.8 → mss_python-0.2.0}/.gitignore +0 -0
  8. {mss_python-0.1.8 → mss_python-0.2.0}/.vscode/settings.json +0 -0
  9. {mss_python-0.1.8 → mss_python-0.2.0}/LICENSE +0 -0
  10. {mss_python-0.1.8 → mss_python-0.2.0}/README.md +0 -0
  11. {mss_python-0.1.8 → mss_python-0.2.0}/examples/simple/main.py +0 -0
  12. {mss_python-0.1.8 → mss_python-0.2.0}/pyproject.toml +0 -0
  13. {mss_python-0.1.8 → mss_python-0.2.0}/requirements.txt +0 -0
  14. {mss_python-0.1.8 → mss_python-0.2.0}/setup.cfg +0 -0
  15. {mss_python-0.1.8 → mss_python-0.2.0}/src/mss_python/__init__.py +0 -0
  16. {mss_python-0.1.8 → mss_python-0.2.0}/src/mss_python/request/method_names.py +0 -0
  17. {mss_python-0.1.8 → mss_python-0.2.0}/src/mss_python/request/methods.py +0 -0
  18. {mss_python-0.1.8 → mss_python-0.2.0}/src/mss_python/request/types_mss.py +0 -0
  19. {mss_python-0.1.8 → mss_python-0.2.0}/src/mss_python.egg-info/SOURCES.txt +0 -0
  20. {mss_python-0.1.8 → mss_python-0.2.0}/src/mss_python.egg-info/dependency_links.txt +0 -0
  21. {mss_python-0.1.8 → mss_python-0.2.0}/src/mss_python.egg-info/requires.txt +0 -0
  22. {mss_python-0.1.8 → mss_python-0.2.0}/src/mss_python.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mss-python
3
- Version: 0.1.8
3
+ Version: 0.2.0
4
4
  Summary: MSS API wrapper for Python projects
5
5
  Author: Rubin Canaj
6
6
  Author-email: HGV <development@hgv.it>
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.1.8'
16
- __version_tuple__ = version_tuple = (0, 1, 8)
15
+ __version__ = version = '0.2.0'
16
+ __version_tuple__ = version_tuple = (0, 2, 0)
@@ -92,7 +92,7 @@ def refine_getHotelList(resp: dict) -> dict:
92
92
  return resp
93
93
  elif "hotel" not in resp["result"] or resp["result"]["hotel"] is None:
94
94
  return resp
95
- elif resp["result"]["hotel"] is not list:
95
+ elif not isinstance(resp["result"]["hotel"], list):
96
96
  resp["result"]["hotel"] = [resp["result"]["hotel"]]
97
97
 
98
98
  for hotel in resp["result"]["hotel"]:
@@ -107,5 +107,5 @@ def refine_getHotelList(resp: dict) -> dict:
107
107
  def ensure_list_value(hotel: dict, parent_fld: str, child_fld: str) -> None:
108
108
  if parent_fld not in hotel:
109
109
  hotel[parent_fld] = {child_fld: []}
110
- elif hotel[parent_fld][child_fld] is not list:
110
+ elif not isinstance(hotel[parent_fld][child_fld], list):
111
111
  hotel[parent_fld][child_fld] = [hotel[parent_fld][child_fld]]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mss-python
3
- Version: 0.1.8
3
+ Version: 0.2.0
4
4
  Summary: MSS API wrapper for Python projects
5
5
  Author: Rubin Canaj
6
6
  Author-email: HGV <development@hgv.it>
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes