From c3fb943cc44c94890b27ab24a185b984d365e676 Mon Sep 17 00:00:00 2001 From: j Date: Sun, 27 May 2018 18:48:39 +0200 Subject: [PATCH] strip tags --- recommendation_engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recommendation_engine.py b/recommendation_engine.py index b08f010..fb86f72 100644 --- a/recommendation_engine.py +++ b/recommendation_engine.py @@ -155,7 +155,7 @@ class Engine: 'id': entity['id'], 'name': entity['name'], 'nodename': entity['nodename'], - 'tags': entity['tags'] + 'tags': [t.strip() for t in entity['tags']] } for entity in self.pandora.find_entities({ 'conditions': [ {'key': 'type', 'operator': '==', 'value': 'storylines'},