From 64eb7c037ed29808278008b650cba654e0996fc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Loraine=20Gu=C3=A9guen?= <loraine-gueguen@users.noreply.github.com> Date: Tue, 1 Jun 2021 14:16:35 +0200 Subject: [PATCH] debug get picture --- utilities.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utilities.py b/utilities.py index e60f4fc..e32d40c 100755 --- a/utilities.py +++ b/utilities.py @@ -151,13 +151,13 @@ def get_sp_picture(sp_dict_list): # no picture stored yet for this genus_species if genus_species not in sp_picture_dict.keys() \ or (genus_species in sp_picture_dict.keys() - and sp_picture_dict[genus_species] == ""): + and sp_picture_dict[genus_species] == None): 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[constants.ORG_PARAM_DESC][constants.ORG_PARAM_DESC_PICTURE_PATH] != None: sp_picture_dict[genus_species] = sp[constants.ORG_PARAM_DESC][constants.ORG_PARAM_DESC_PICTURE_PATH] else: - sp_picture_dict[genus_species] = "" + sp_picture_dict[genus_species] = None # overwrite stored picture if a picture exists for the main strain if (constants.ORG_PARAM_DESC_MAIN_SPECIES in sp[constants.ORG_PARAM_DESC].keys() -- GitLab