From 5b465fc3d532ffdcf5b53158811dc85bf3333213 Mon Sep 17 00:00:00 2001 From: dedeibel Date: Fri, 14 Apr 2017 14:22:05 +0200 Subject: [PATCH] eh17 implemented new interface to build only single event ids --- eh17/__init__.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/eh17/__init__.py b/eh17/__init__.py index 8ba069a..bf893f7 100644 --- a/eh17/__init__.py +++ b/eh17/__init__.py @@ -263,10 +263,16 @@ def debug(): def tasks(queue, args, idlist, skiplist): # iterate over all events extracted from the schedule xml-export for event in events(scheduleUrl): + if 000000 in idlist: + continue if event['room'] not in ('Vortragssaal', 'Großes Kolleg'): print("skipping room %s (%s)" % (event['room'], event['title'])) continue - + if not (idlist==None): + if int(event['id']) not in idlist: + print("skipping id %s (%s)" % (event['id'], event['title'])) + continue + # generate a task description and put them into the queue queue.put(Rendertask( infile='intro.svg',