Skip to content
Snippets Groups Projects
Verified Commit fbd76b15 authored by Laurent Heirendt's avatar Laurent Heirendt :airplane:
Browse files

boolean condition for qms title

parent 42a330fa
No related branches found
No related tags found
No related merge requests found
......@@ -341,10 +341,12 @@ for folder in cardDirs:
description = save_tag(localroot, root, file, "description")
# extract the title from the QMS metadata
qms_yml = False
if "qms" in root:
if exists(os.path.join(root, file[:-3] + ".yml")):
title = save_tag(localroot, root, file[:-3] + ".yml", "title")
prepare_qms(localroot, root, file)
qms_yml = True
else:
print("QMS document is not formatted properly.")
......@@ -389,7 +391,7 @@ for folder in cardDirs:
line_prepender(fileName, header)
# open file and get the title after the header
if "qms" not in root:
if not qms_yml:
count = 0
title = ""
bp = n + 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment