Skip to content

Commit

Permalink
fix NONE values on multilingual objects
Browse files Browse the repository at this point in the history
  • Loading branch information
vvmruder committed Jun 16, 2023
1 parent ff3b656 commit 85c6eac
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ Indices and tables
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`


run with `documents = run_batch([4304,4305,4305], 'ch.Planungszonen', 'config_gr.yaml', 'pyramid_oereb')`
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

setup(
name='geolink2oereb',
version='0.1.3',
version='0.1.4',
description='Transforms a geolink to OeREBKRMtrsfr_V2_0 document entities',
license='BSD',
long_description='{readme}\n\n{changelog}'.format(readme=readme, changelog=changelog),
Expand Down
2 changes: 1 addition & 1 deletion src/geolink2oereb/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1.3'
__version__ = '0.1.4'
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@


def multilingual_text_from_dict(multilingual_dict):
if multilingual_dict is None:
return multilingual_dict
localized_texts = LocalisedTextType()
for language in multilingual_dict:
localized_texts.LocalisationCH_V1_LocalisedText.append(
Expand Down

0 comments on commit 85c6eac

Please sign in to comment.