Skip to content
Snippets Groups Projects
Commit 26331163 authored by Loraine Gueguen's avatar Loraine Gueguen
Browse files

fix picture_path in species template

parent 4230085a
No related branches found
No related tags found
1 merge request!18Release v2.1.0
......@@ -42,7 +42,7 @@ services:
- ./banner.png:/var/www/html/banner.png:ro
{% endif %}
#- /groups/XXX/:/groups/XXX/:ro # We do this when we have symlinks in src_data pointing to /groups/XXX/...
{% if 'picture_path' is defined %}
{% if 'picture_path' is defined and 'picture_path' != None %}
{% if 'png' in picture_path %}
- ./species.png:/var/www/html/species.png:ro
{% endif %}
......
......@@ -179,11 +179,10 @@ def get_sp_picture(sp_dict_list):
gspecies = get_gspecies_string_from_sp_dict(sp)
if gspecies not in sp_picture_dict.keys() or ( constants.ORG_PARAM_DESC_MAIN_SPECIES in sp[constants.ORG_PARAM_DESC].keys() and
sp[constants.ORG_PARAM_DESC][constants.ORG_PARAM_DESC_MAIN_SPECIES] == True ):
sp_picture_dict[gspecies] = "" # default value
sp_picture_dict[gspecies] = ""
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][constants.ORG_PARAM_DESC_PICTURE_PATH]
logging.debug("Species picture dictionary: {0}".format(sp_picture_dict))
return sp_picture_dict
def run_tool(instance, tool_id, history_id, tool_inputs):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment