|
|
@@ -36,7 +36,11 @@ if __name__ == '__main__':
|
|
|
val = e['_id'].replace(" ", r"\ ")
|
|
|
post_data('error', {'source': '%s' % val}, e['count'])
|
|
|
|
|
|
- for d in d.get_sources_with_count():
|
|
|
- val = d['_id'].replace(" ", r"\ ")
|
|
|
+ for s in d.get_sources_with_count():
|
|
|
+ val = s['_id'].replace(" ", r"\ ")
|
|
|
post_data('totals', {'source': '%s' % val},
|
|
|
- {'value': d['count'], 'weight': d['weight']})
|
|
|
+ {'value': s['count'], 'weight': s['weight']})
|
|
|
+
|
|
|
+ for k, v in d.get_keywords_with_count().items():
|
|
|
+ val = k.replace(" ", r"\ ")
|
|
|
+ post_data('totals', {}, {'kw': val, 'count': v})
|