From c7df56138aa04bf0858dd1ccb6d6c6e5e507366a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Valentin=20Grou=C3=A8s?= <valentin.groues@uni.lu>
Date: Tue, 19 Nov 2019 16:09:24 +0100
Subject: [PATCH] remove ugly malformed json workaround

---
 jensenlab-service/jensenLabService.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/jensenlab-service/jensenLabService.py b/jensenlab-service/jensenLabService.py
index 8745cc0..d59666f 100644
--- a/jensenlab-service/jensenLabService.py
+++ b/jensenlab-service/jensenLabService.py
@@ -57,7 +57,7 @@ class JensenLabService(TextMiningService):
         url_mentions = JensenLabService.MENTION_URL.format(entity_type, entity, limit)
         results = requests.get(url_mentions)
         assert results.ok
-        publications_string = results.content.decode().strip().replace('True', 'true').replace('False', 'false')
+        publications_string = results.content.decode().strip()
         publications_list, has_more = json.loads(publications_string)
         return set(publications_list)
 
-- 
GitLab