From 7ff14e4270e2578bd201248687e0fd504e229068 Mon Sep 17 00:00:00 2001
From: Arthur Le Bars <arthur.le-bars@sb-roscoff.fr>
Date: Tue, 18 May 2021 17:52:20 +0200
Subject: [PATCH] Fix typo in parameter name in gga_init

---
 gga_init.py    | 4 ++--
 speciesData.py | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gga_init.py b/gga_init.py
index 4be3f70..497fb1f 100755
--- a/gga_init.py
+++ b/gga_init.py
@@ -81,13 +81,13 @@ class DeploySpeciesStack(speciesData.SpeciesData):
             if self.tripal_species_picture.endswith("png"):
                 species_picture_dest_path = os.path.join(self.species_dir, os.path.abspath("species.png"))
                 try:
-                    os.symlink(os.path.abspath(self.tripal_species_picture, species_picture_dest_path))
+                    os.symlink(os.path.abspath(self.tripal_species_picture), species_picture_dest_path)
                 except FileNotFoundError:
                     logging.info("Specified organism picture ({0}) not found for {1}".format(self.tripal_species_picture, self.genus_upper + " " + self.species))
             elif self.tripal_species_picture.endswith("jpg"):
                 species_picture_dest_path = os.path.join(self.species_dir, os.path.abspath("species.jpg"))
                 try:
-                    os.symlink(os.path.abspath(self.tripal_species_picture, species_picture_dest_path))
+                    os.symlink(os.path.abspath(self.tripal_species_picture), species_picture_dest_path)
                 except FileNotFoundError:
                     logging.info("Specified organism picture ({0}) not found for {1}".format(self.tripal_species_picture, self.genus_upper + " " + self.species))
 
diff --git a/speciesData.py b/speciesData.py
index 87c2015..dcc26a0 100755
--- a/speciesData.py
+++ b/speciesData.py
@@ -89,7 +89,7 @@ class SpeciesData:
             self.blast = "0"
 
         if constants.ORG_PARAM_DESC_PICTURE_PATH in parameters_dictionary_description.keys():
-            self.tripal_species_picture = parameters_dictionary_services[constants.ORG_PARAM_DESC_PICTURE_PATH]
+            self.tripal_species_picture = parameters_dictionary_description[constants.ORG_PARAM_DESC_PICTURE_PATH]
         else:
             self.tripal_species_picture = None
 
-- 
GitLab