mss-python 0.1.7__tar.gz → 0.1.9__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.7 → mss_python-0.1.9}/.flake8 +1 -1
  2. {mss_python-0.1.7 → mss_python-0.1.9}/PKG-INFO +1 -1
  3. {mss_python-0.1.7 → mss_python-0.1.9}/src/mss_python/_version.py +2 -2
  4. {mss_python-0.1.7 → mss_python-0.1.9}/src/mss_python/client.py +4 -4
  5. {mss_python-0.1.7 → mss_python-0.1.9}/src/mss_python.egg-info/PKG-INFO +1 -1
  6. {mss_python-0.1.7 → mss_python-0.1.9}/.github/workflows/python-publish.yml +0 -0
  7. {mss_python-0.1.7 → mss_python-0.1.9}/.gitignore +0 -0
  8. {mss_python-0.1.7 → mss_python-0.1.9}/.vscode/settings.json +0 -0
  9. {mss_python-0.1.7 → mss_python-0.1.9}/LICENSE +0 -0
  10. {mss_python-0.1.7 → mss_python-0.1.9}/README.md +0 -0
  11. {mss_python-0.1.7 → mss_python-0.1.9}/examples/simple/main.py +0 -0
  12. {mss_python-0.1.7 → mss_python-0.1.9}/pyproject.toml +0 -0
  13. {mss_python-0.1.7 → mss_python-0.1.9}/requirements.txt +0 -0
  14. {mss_python-0.1.7 → mss_python-0.1.9}/setup.cfg +0 -0
  15. {mss_python-0.1.7 → mss_python-0.1.9}/src/mss_python/__init__.py +0 -0
  16. {mss_python-0.1.7 → mss_python-0.1.9}/src/mss_python/request/method_names.py +0 -0
  17. {mss_python-0.1.7 → mss_python-0.1.9}/src/mss_python/request/methods.py +0 -0
  18. {mss_python-0.1.7 → mss_python-0.1.9}/src/mss_python/request/types_mss.py +0 -0
  19. {mss_python-0.1.7 → mss_python-0.1.9}/src/mss_python.egg-info/SOURCES.txt +0 -0
  20. {mss_python-0.1.7 → mss_python-0.1.9}/src/mss_python.egg-info/dependency_links.txt +0 -0
  21. {mss_python-0.1.7 → mss_python-0.1.9}/src/mss_python.egg-info/requires.txt +0 -0
  22. {mss_python-0.1.7 → mss_python-0.1.9}/src/mss_python.egg-info/top_level.txt +0 -0
@@ -1,3 +1,3 @@
1
1
  [flake8]
2
2
  exclude = simple # Exclude for the moment
3
- ignore = E501,E265,E266,E402
3
+ ignore = E501,E265,E266,E402,W503
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mss-python
3
- Version: 0.1.7
3
+ Version: 0.1.9
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.7'
16
- __version_tuple__ = version_tuple = (0, 1, 7)
15
+ __version__ = version = '0.1.9'
16
+ __version_tuple__ = version_tuple = (0, 1, 9)
@@ -58,7 +58,7 @@ class Client:
58
58
 
59
59
  root = method.get_base_xml(self.cred, self.lang)
60
60
 
61
- if data is None:
61
+ if data is not None:
62
62
  root = change_structure(root, data)
63
63
 
64
64
  if _print is True:
@@ -92,13 +92,13 @@ 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 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"]:
99
99
  ensure_list_value(hotel, "pictures", "picture")
100
100
  ensure_list_value(hotel, "gallery", "picture")
101
- ensure_list_value(hotel, "feature_view", "feature")
101
+ ensure_list_value(hotel, "features_view", "feature")
102
102
  ensure_list_value(hotel, "pos", "id_pos")
103
103
 
104
104
  return resp
@@ -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 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.7
3
+ Version: 0.1.9
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