Skip to content

Commit

Permalink
Fixes: Search services are not saved GeoNode/geonode-mapstore-client#58
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Sep 28, 2020
1 parent 4b88668 commit 7ce4649
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions mapstore2_adapter/plugins/geonode.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@ def convert(self, viewer, request):
if isinstance(ms2_map_data, string_types):
ms2_map_data = json.loads(ms2_map_data)
if 'map' in ms2_map_data:
for _k, _v in ms2_map_data['map'].items():
if _k not in data['map']:
data['map'][_k] = ms2_map_data['map'][_k]
del ms2_map_data['map']
data.update(ms2_map_data)
except Exception:
Expand Down
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
django>=2.2.0,<4.0
idna>=2.5,<2.11
requests>=2.13.0
Markdown==3.2.2
MarkupSafe==1.1.1
jsonfield==3.1.0
Markdown>=3.2.2
MarkupSafe>=1.1.1
jsonfield>=3.1.0
djangorestframework>=3.8.2
urllib3==1.25.9
urllib3>=1.25.9

0 comments on commit 7ce4649

Please sign in to comment.