From da69827f28799ac52d86b69a84d254c39d537d91 Mon Sep 17 00:00:00 2001
From: Jutta Schnabel <jschnabel@km3net.de>
Date: Fri, 9 Oct 2020 22:03:38 +0200
Subject: [PATCH] fixing pipe

---
 .gitlab-ci.yml    | 2 --
 make_documents.py | 7 +++----
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6b9ea7f..de1d0f1 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 ce6abb5..005d7ea 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")
-- 
GitLab