From 0a489ac997a225db751d8d8f5cf3c1bf2264a8f2 Mon Sep 17 00:00:00 2001
From: TonyFord <tonyford@strategy-investor.de>
Date: Fri, 28 Feb 2020 20:19:55 +0100
Subject: [PATCH] add field for custom tags

---
 script/get_orders.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/script/get_orders.py b/script/get_orders.py
index 389b2b3..de68a4b 100644
--- a/script/get_orders.py
+++ b/script/get_orders.py
@@ -140,12 +140,12 @@ for source in Pulls:
             logme('- order.yml[tags] not found -> SKIP order !')
             continue
         else:
-            if( len(OO['tags']) > 0 and len(OO['tags']) < 3 ):
+            if( len(OO['tags']) > 0 and len(OO['tags']) < 4 ):
                 if not os.path.exists('../_data/categories/'+(OO['tags'][0]).strip()+'.yml' ):
                     logme('- order.yml[tags] = "'+(OO['tags'][0]).strip()+'" not found -> SKIP order !')
                     continue
             else:
-                logme('- order.yml[tags] bad array length = ' + len(OO['tags']) + ' ( should be 1 or 2 )-> SKIP order !')
+                logme('- order.yml[tags] bad array length = ' + len(OO['tags']) + ' ( should be 1 or 2 or 3 )-> SKIP order !')
                 continue
 
         if( 'headline' not in OO ):
-- 
GitLab