last push
authorMart Lubbers <mart@martlubbers.net>
Tue, 26 Aug 2014 10:21:10 +0000 (12:21 +0200)
committerMart Lubbers <mart@martlubbers.net>
Tue, 26 Aug 2014 10:21:10 +0000 (12:21 +0200)
program/everything/data_processing.py

index a53d4cd..c4e971f 100644 (file)
@@ -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')))