Check against value for duplicates when inserting into description_string

pull/15/head
Adam Schettenhelm 2017-05-26 20:37:36 -04:00
parent b6fb4c80bf
commit 7b990df436
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