Skip to content
Snippets Groups Projects
Commit b983489f authored by Cristiano Urban's avatar Cristiano Urban
Browse files

Replaced 'SKIP' with 'SKIPPED'.

parent 3cc345e7
No related branches found
No related tags found
No related merge requests found
...@@ -101,7 +101,7 @@ class ImportExecutor(TaskExecutor): ...@@ -101,7 +101,7 @@ class ImportExecutor(TaskExecutor):
nodeList.append([ now, dir, vospacePath, "container", "DONE" ]) nodeList.append([ now, dir, vospacePath, "container", "DONE" ])
else: else:
now = dt.now() now = dt.now()
nodeList.append([ now, dir, vospacePath, "container", "SKIP" ]) nodeList.append([ now, dir, vospacePath, "container", "SKIPPED" ])
for flist in files: for flist in files:
for file in flist: for file in flist:
...@@ -141,7 +141,7 @@ class ImportExecutor(TaskExecutor): ...@@ -141,7 +141,7 @@ class ImportExecutor(TaskExecutor):
nodeList.append([ now, file, vospacePath, "data", "DONE" ]) nodeList.append([ now, file, vospacePath, "data", "DONE" ])
else: else:
now = dt.now() now = dt.now()
nodeList.append([ now, file, vospacePath, "data", "SKIP" ]) nodeList.append([ now, file, vospacePath, "data", "SKIPPED" ])
#out.close() #out.close()
nlfp.write(tabulate(nodeList, nlfp.write(tabulate(nodeList,
...@@ -169,7 +169,7 @@ class ImportExecutor(TaskExecutor): ...@@ -169,7 +169,7 @@ class ImportExecutor(TaskExecutor):
End time: {end} End time: {end}
Processed nodes: {len(nodeList)} Processed nodes: {len(nodeList)}
Imported nodes: {sum(res[-1] == 'DONE' for res in nodeList)} Imported nodes: {sum(res[-1] == 'DONE' for res in nodeList)}
Skipped nodes: {sum(res[-1] == 'SKIP' for res in nodeList)} Skipped nodes: {sum(res[-1] == 'SKIPPED' for res in nodeList)}
""" """
m.setMessageWithAttachment("VOSpace import notification", msg, nodeListFile) m.setMessageWithAttachment("VOSpace import notification", msg, nodeListFile)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment