From 99ed4993097c6ac091b007c102f6d7925843fc94 Mon Sep 17 00:00:00 2001
From: Loraine Gueguen <loraine.gueguen@sb-roscoff.fr>
Date: Thu, 20 May 2021 21:11:32 +0200
Subject: [PATCH] fix picture_path

---
 utilities.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utilities.py b/utilities.py
index 7d4a0b0..08a1b4c 100755
--- a/utilities.py
+++ b/utilities.py
@@ -181,7 +181,7 @@ def get_sp_picture(sp_dict_list):
                                                            sp[constants.ORG_PARAM_DESC][constants.ORG_PARAM_DESC_MAIN_SPECIES] == True ):
             if constants.ORG_PARAM_DESC_PICTURE_PATH in sp[constants.ORG_PARAM_DESC].keys() and \
                     sp[constants.ORG_PARAM_DESC][constants.ORG_PARAM_DESC_PICTURE_PATH] != "":
-                sp_picture_dict[gspecies] = sp[constants.ORG_PARAM_DESC_PICTURE_PATH]
+                sp_picture_dict[gspecies] = sp[constants.ORG_PARAM_DESC][constants.ORG_PARAM_DESC_PICTURE_PATH]
 
     return sp_picture_dict
 
-- 
GitLab