Commit 9887acd3 authored by Romain Therville's avatar Romain Therville 🐭
Browse files

Update to the migration workflow.

Prints used for debug have been removed.

Issue#129
parent b412ffa6
...@@ -759,8 +759,6 @@ class Analysis (Component): ...@@ -759,8 +759,6 @@ class Analysis (Component):
for result_file in result_files : for result_file in result_files :
filename = os.path.basename(result_file['rvalue']) filename = os.path.basename(result_file['rvalue'])
new_filepath = self.get_full_filepath(filename) new_filepath = self.get_full_filepath(filename)
print("new_filepath = " + str(new_filepath))
print("result uid = " + str(result_file['uid']))
t3mysql.update_fields('tx_nG6_result', str(result_file['uid']), ['rvalue'], [str(new_filepath)] ) t3mysql.update_fields('tx_nG6_result', str(result_file['uid']), ['rvalue'], [str(new_filepath)] )
return [retcode, str_cmd] return [retcode, str_cmd]
......
...@@ -1068,7 +1068,6 @@ class t3MySQLdb(object): ...@@ -1068,7 +1068,6 @@ class t3MySQLdb(object):
def get_analysis_result_files(self, analysis_id, base_filepath = 'fileadmin'): def get_analysis_result_files(self, analysis_id, base_filepath = 'fileadmin'):
sql = "SELECT uid, rvalue FROM tx_nG6_result WHERE analyze_id='"+str(analysis_id)+"' AND rvalue LIKE '"+str(base_filepath)+"%'" sql = "SELECT uid, rvalue FROM tx_nG6_result WHERE analyze_id='"+str(analysis_id)+"' AND rvalue LIKE '"+str(base_filepath)+"%'"
print(sql)
qresult = self.execute(sql) qresult = self.execute(sql)
results = [] results = []
for result in qresult.rows: for result in qresult.rows:
......
...@@ -46,7 +46,6 @@ def migrate_project (project_id, new_space_id, output): ...@@ -46,7 +46,6 @@ def migrate_project (project_id, new_space_id, output):
log_to_output_files(str_log, output) log_to_output_files(str_log, output)
runs = project.get_runs() runs = project.get_runs()
#print(runs)
for run in runs : for run in runs :
str_log="\t - ##RUN '" + run.name + "' (" + str(run.id) + ") - " + run.directory + "\n" str_log="\t - ##RUN '" + run.name + "' (" + str(run.id) + ") - " + run.directory + "\n"
log_to_output_files(str_log, output) log_to_output_files(str_log, output)
...@@ -66,8 +65,6 @@ def migrate_project (project_id, new_space_id, output): ...@@ -66,8 +65,6 @@ def migrate_project (project_id, new_space_id, output):
analyzes = project.get_analysis() analyzes = project.get_analysis()
for analysis in analyzes : for analysis in analyzes :
print(analysis.results)
str_log="\t - ##ANALYSE PROJECT '" + analysis.name + "' (" + str(analysis.id) + ") - " + analysis.directory + "\n" str_log="\t - ##ANALYSE PROJECT '" + analysis.name + "' (" + str(analysis.id) + ") - " + analysis.directory + "\n"
log_to_output_files(str_log, output) log_to_output_files(str_log, output)
......
Markdown is supported
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