From 3e4707a3f25f3a2f84f811394d738cebc1ca9f19 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20K=C3=B6gl?= Date: Sun, 6 Aug 2017 15:48:11 +0000 Subject: [PATCH] Fix parsing UUID in search results --- mygpo/search/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mygpo/search/models.py b/mygpo/search/models.py index a3c9b5b7..2fc306ea 100644 --- a/mygpo/search/models.py +++ b/mygpo/search/models.py @@ -1,6 +1,6 @@ """ Wrappers for the results of a search """ - +import uuid class PodcastResult(object): @@ -14,7 +14,7 @@ class PodcastResult(object): for key, val in doc['_source'].items(): setattr(obj, key, val) - obj.id = doc['_id'] + obj.id = uuid.UUID(doc['_id']).hex return obj @property -- 2.11.4.GIT