Commit 8dc50c04 authored by Penom Nom's avatar Penom Nom
Browse files

Fix bug in commit history.

parent bc230b0f
......@@ -213,7 +213,7 @@ class Analysis (Component):
logging.getLogger("Analysis.sync").info("The synchronisation has not been performed, either because " + self.__get_work_directory() + " does not exists or because the source and destination folders are the same.")
# update the storage size
t3mysql = t3MySQLdb()
t3mysql.update_analysis_field(self.id, "storage_size", Utils.get_storage_size(self.__get_save_directory()))
t3mysql.update_analysis_field(self.id, "storage_size", Utils.get_storage_size(self.__get_save_directory()))
except Exception, err:
raise Exception(str(err))
......@@ -258,11 +258,11 @@ class Analysis (Component):
except :
return None
def get_template(self):
"""
Return the name of the template used for the visualisation.
"""
return self.__class__.__name__
def get_template(self):
"""
Return the name of the template used for the visualisation.
"""
return self.__class__.__name__
def save(self):
"""
......@@ -272,7 +272,7 @@ class Analysis (Component):
t3mysql = t3MySQLdb()
if self.parent: parent_uid = self.parent.id
else: parent_uid = 0
self.id = t3mysql.add_analysis(self.get_template(), self.name, self.description,
self.id = t3mysql.add_analysis(self.get_template(), self.name, self.description, self.admin_login,
datetime.date.today(), self.directory, self.software, self.version,
self.options, self.is_editable, parent_uid=parent_uid)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment