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

fixing pipe

parent 715b056f
No related branches found
No related tags found
No related merge requests found
Pipeline #14431 failed
......@@ -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
......
#!/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")
......
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