From: Mart Lubbers Date: Tue, 26 Aug 2014 10:21:10 +0000 (+0200) Subject: last push X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=c3aacb2d12f9659f1d320b8fd34b4547ff8174e1;p=bsc-thesis1415.git last push --- 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')))