From c3aacb2d12f9659f1d320b8fd34b4547ff8174e1 Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Tue, 26 Aug 2014 12:21:10 +0200 Subject: [PATCH] last push --- program/everything/data_processing.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/program/everything/data_processing.py b/program/everything/data_processing.py index a53d4cd..c4e971f 100644 --- a/program/everything/data_processing.py +++ b/program/everything/data_processing.py @@ -42,10 +42,10 @@ def parse_line(line): def create_nodes(d): color_dict = { - 'rgb(139, 0, 0)': '\x01', # 'datum', - 'red': '\x02', # 'tijd', - 'green': '\x03', # 'wat', - 'blue': '\x04' # 'wanneer' + 'rgb(139, 0, 0)': '\x01', # datum + 'red': '\x02', # tijd + 'green': '\x03', # wat + 'blue': '\x04' # wanneer } line_w_match = [] d['content'] = d['content'][1:] @@ -65,6 +65,7 @@ def create_nodes(d): title_l[match.end('content'):] title_l = title_l[:match.start('b')] + title_l[match.end('b'):] nodelists['Title'].append(title_l) + # Summary if summary_m: summary = summary_m[0] matches = reversed(sorted(summary, key=lambda x: x.end('e'))) -- 2.20.1