Merge pull request #15 from aschet01/norepeats

Check value against repeats in description_string.
pull/17/merge
Raphaël Vinot 2017-05-28 06:41:35 +02:00 committed by GitHub
commit e276f33c29
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ class FileBase(object):
Otherwise, add `prop_string`: `value` to `user_defined` properties.
"""
if prop_string is 'description_string':
if prop_string not in self._file_props['description_string']:
if value not in self._file_props['description_string']:
self._file_props['description_string'].append(value)
elif prop_string in self._file_props.keys():
self._file_props[prop_string] = value