Skip to content
Snippets Groups Projects
Commit d58ac600 authored by Jutta Schnabel's avatar Jutta Schnabel
Browse files

hating pipes

parent da69827f
No related branches found
No related tags found
No related merge requests found
Pipeline #14432 failed
......@@ -23,7 +23,9 @@ test:
build:
stage: build
image: docker.km3net.de/base/texlive:2018
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
......
#!/usr/bin/python
import yaml
def fulltext_from_filelist(filelistname, onlystatus = ""):
fulltext = ""
......@@ -7,13 +8,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")
......
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