mirror of https://github.com/CIRCL/PyCIRCLean
Check against value for duplicates when inserting into description_string
parent
b6fb4c80bf
commit
7b990df436
|
@ -162,7 +162,7 @@ class FileBase(object):
|
||||||
Otherwise, add `prop_string`: `value` to `user_defined` properties.
|
Otherwise, add `prop_string`: `value` to `user_defined` properties.
|
||||||
"""
|
"""
|
||||||
if prop_string is 'description_string':
|
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)
|
self._file_props['description_string'].append(value)
|
||||||
elif prop_string in self._file_props.keys():
|
elif prop_string in self._file_props.keys():
|
||||||
self._file_props[prop_string] = value
|
self._file_props[prop_string] = value
|
||||||
|
|
Loading…
Reference in New Issue