From 7b990df43605aa1abf7fad891731ad6800bfb194 Mon Sep 17 00:00:00 2001 From: Adam Schettenhelm Date: Fri, 26 May 2017 20:37:36 -0400 Subject: [PATCH] Check against value for duplicates when inserting into description_string --- kittengroomer/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kittengroomer/helpers.py b/kittengroomer/helpers.py index 64e7e51..998015c 100644 --- a/kittengroomer/helpers.py +++ b/kittengroomer/helpers.py @@ -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