Compare commits

...
Author SHA1 Message Date
ivanmkc d170cb00b5 Fixed edge case where no notebooks are detected 2021-11-13 18:03:31 -05:00
+3 -1
View File
@@ -331,7 +331,9 @@ def run_changed_notebooks(
print("\n=== END RESULTS===\n")
total_notebook_duration = functools.reduce(
operator.add, [result.duration for result in results_sorted]
operator.add,
[datetime.timedelta(seconds=0)]
+ [result.duration for result in results_sorted],
)
print(f"Cumulative notebook duration: {format_timedelta(total_notebook_duration)}")