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

simplify if cond

parent f2a7e65b
No related branches found
No related tags found
2 merge requests!403[release] Regular merge of develop,!397integrate QMS
Pipeline #61620 passed with warnings
......@@ -167,18 +167,11 @@ def remove_header(localroot, root, filename):
def element_header(prefix, permalink, element):
# handbook section
if "handbook-annexes" in permalink or "handbook-additional" in permalink:
element += prefix + "/cards/" + root_href(shortcut) + "\n"
element += prefix + "/" + folder + "/cards/" + root_href(shortcut) + "\n"
# lab section
if "lab-software" in permalink or "lab-equipment" in permalink or "lab-hsa" in permalink:
element += prefix + "/cards/" + root_href(shortcut) + "\n"
element += prefix + "/" + folder + "/cards/" + root_href(shortcut) + "\n"
# QMS section
if "qms-policies" in permalink or "qms-sops" in permalink:
if (
("handbook-annexes" in permalink or "handbook-additional" in permalink) or
("lab-software" in permalink or "lab-equipment" in permalink or "lab-hsa" in permalink) or
("qms-policies" in permalink or "qms-sops" in permalink)
):
element += prefix + "/cards/" + root_href(shortcut) + "\n"
element += prefix + "/" + folder + "/cards/" + root_href(shortcut) + "\n"
......
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