0001-grandlyon-street-sections-support-data-returning-nul.patch
passerelle/contrib/grandlyon_streetsections/models.py | ||
---|---|---|
117 | 117 |
for attribute in ('bornemindroite', 'bornemingauche', |
118 | 118 |
'bornemaxdroite', 'bornemaxgauche', |
119 | 119 |
'gid'): |
120 |
if value.get(attribute) == 'None': |
|
120 |
if value.get(attribute) in (None, 'None'): |
|
121 |
# data.grandlyon returned 'None' as a string at at time |
|
121 | 122 |
if 'min' in attribute: |
122 | 123 |
attribute_value = 0 |
123 | 124 |
elif 'max' in attribute: |
124 |
- |