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 b662f0b commit da4f6ebCopy full SHA for da4f6eb
ppp_datamodel/nodes/resource.py
@@ -49,9 +49,10 @@ def _format_value(value):
49
50
def as_dict(self):
51
d = super().as_dict()
52
- type_ = d.get('value-type', 'string')
+ 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_
56
return d
57
58
@register_valuetype
setup.py
@@ -4,7 +4,7 @@
4
5
setup(
6
name='ppp_datamodel',
7
- version='0.5.14',
+ version='0.5.15',
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