From 45eb457284785e6ddc058c5541eb4b995642f032 Mon Sep 17 00:00:00 2001 From: Ryan May <112563297+ryma2fhir@users.noreply.github.com> Date: Tue, 23 Apr 2024 09:21:17 +0100 Subject: [PATCH] Update QualityControlChecker.py --- QualityControlChecker/QualityControlChecker.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/QualityControlChecker/QualityControlChecker.py b/QualityControlChecker/QualityControlChecker.py index 0dd8654..dcad338 100644 --- a/QualityControlChecker/QualityControlChecker.py +++ b/QualityControlChecker/QualityControlChecker.py @@ -247,7 +247,7 @@ def printWarnings(warnings, file, error): return error -print("\n\033[1mNote:The elements id, name, title, url are checked against the filename. If the filename is incorrect expect all these elements to error.\033[0m\n\n") +print("\n\033[1mNote:The elements id, name, title, url are checked against the filename. If the filename is incorrect expect all these elements to error.\033[0m\n") '''Creates an error state, if any of the checks fails it will cause the action to fail''' error=False mainVar,repoName = getRepoVariables() @@ -259,7 +259,7 @@ def printWarnings(warnings, file, error): for path in paths: try: files = os.listdir('./'+path) - print("\033[1m"+path.title()+"\033[0m") + print("\n\033[1m"+path.title()+"\033[0m") except: continue for file in files: @@ -289,7 +289,7 @@ def printWarnings(warnings, file, error): ''' Check Examples. Prints outcome if issues found and sets error to True.''' try: examplesPath = os.listdir('./examples') - print("\033[1mExamples\033[0m") + print("\n\033[1mExamples\033[0m") except: examplesPath = [] for example in examplesPath: @@ -303,7 +303,7 @@ def printWarnings(warnings, file, error): ''' If any QC issues found within the script, cause the action to fail''' if error == True: - print("\n\033[1mPlease fix the errors found above\033[0m") + print("\n\033[1mPlease fix the errors found above before merging\033[0m") sys.exit(2) else: print("\n\n\033[1mCheck Complete!\033[0m")