We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da4f6eb commit fc5cd85Copy full SHA for fc5cd85
ppp_datamodel/nodes/resource.py
@@ -52,7 +52,8 @@ def as_dict(self):
52
type_ = d.get('value-type', self._value_type)
53
value = d.get('value')
54
d['value'] = self._format_value(value)
55
- d['value-type'] = type_
+ if type_ not in ('string', 'unknown') or 'value-type' in d:
56
+ d['value-type'] = type_
57
return d
58
59
@register_valuetype
setup.py
@@ -4,7 +4,7 @@
4
5
setup(
6
name='ppp_datamodel',
7
- version='0.5.15',
+ version='0.5.16',
8
description='Data model for the Projet Pensées Profondes.',
9
url='https://github.com/ProjetPP/PPP-datamodel-Python',
10
author='Valentin Lorentz',
0 commit comments