diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6b9ea7f8492f545a46290f7b09fe42ab652bd222..de1d0f1ca5675e5cfb7641afce394655ab28b4ef 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,10 +22,8 @@ test: - master build: - image: docker.km3net.de/base/python:3 stage: build script: - - pip install pyyaml - python make_documents.py - pandoc Deliverable_4-8.md -f markdown -t docx -s -o Deliverable_4-8.docx - pandoc Deliverable_4-9.md -f markdown -t docx -s -o Deliverable_4-9.docx diff --git a/make_documents.py b/make_documents.py index ce6abb50dfdc05bb19b531cc66f342ccd0bbe089..005d7ea82c316a6f55c981d0258199d23582a8e6 100644 --- a/make_documents.py +++ b/make_documents.py @@ -1,5 +1,4 @@ #!/usr/bin/python -import yaml def fulltext_from_filelist(filelistname, onlystatus = ""): fulltext = "" @@ -8,13 +7,13 @@ def fulltext_from_filelist(filelistname, onlystatus = ""): while infilename: with open(infilename, "r") as ftext: addtext = ftext.read() - info = yaml.load(addtext[addtext.find("---")+3:addtext.find("---", 5)]) + # info = yaml.load(addtext[addtext.find("---")+3:addtext.find("---", 5)]) takeit = True - if onlystatus: + '''if onlystatus: takeit = False if "status" in info: if info["status"] == onlystatus: - takeit = True + takeit = True''' if takeit: fulltext += addtext[addtext.find("---", 5)+3:len(addtext)] + "\n" infilename = f.readline().rstrip("\n")