mirror of https://github.com/CIRCL/PyCIRCLean
Merge pull request #15 from aschet01/norepeats
Check value against repeats in description_string.pull/17/merge
commit
e276f33c29
|
@ -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