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

Update to the migration workflow.

Prints used for debug have been removed.

Issue#129
parent b412ffa6
......@@ -759,8 +759,6 @@ class Analysis (Component):
for result_file in result_files :
filename = os.path.basename(result_file['rvalue'])
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)] )
return [retcode, str_cmd]
......
......@@ -1068,7 +1068,6 @@ class t3MySQLdb(object):
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)+"%'"
print(sql)
qresult = self.execute(sql)
results = []
for result in qresult.rows:
......
......@@ -46,7 +46,6 @@ def migrate_project (project_id, new_space_id, output):
log_to_output_files(str_log, output)
runs = project.get_runs()
#print(runs)
for run in runs :
str_log="\t - ##RUN '" + run.name + "' (" + str(run.id) + ") - " + run.directory + "\n"
log_to_output_files(str_log, output)
......@@ -65,9 +64,7 @@ def migrate_project (project_id, new_space_id, output):
log_to_output_files(str_log, output)
analyzes = project.get_analysis()
for analysis in analyzes :
print(analysis.results)
for analysis in analyzes :
str_log="\t - ##ANALYSE PROJECT '" + analysis.name + "' (" + str(analysis.id) + ") - " + analysis.directory + "\n"
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