From 3538e7425bbd664856e44faf27e2c647b206948b Mon Sep 17 00:00:00 2001 From: Reinier Reisy Quevedo Batista Date: Wed, 4 Oct 2017 16:27:56 -0400 Subject: [PATCH 1/2] [FIX] Fixing error when create graph from dict --- bubbles/execution/graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bubbles/execution/graph.py b/bubbles/execution/graph.py index 7d194ff..d2bc15b 100644 --- a/bubbles/execution/graph.py +++ b/bubbles/execution/graph.py @@ -173,7 +173,7 @@ def __init__(self, nodes=None, connections=None): if connections: for connection in connections: - self.connect(*connectio) + self.connect(*connection) def _generate_node_name(self): """Generates unique name for a node""" From 841552eedbea70b090651f3c6f8b2c98260a765d Mon Sep 17 00:00:00 2001 From: Reinier Reisy Quevedo Batista Date: Wed, 4 Oct 2017 16:30:13 -0400 Subject: [PATCH 2/2] [FIX] Fixing 'text_substitute' import and typing errors --- bubbles/ops/rows.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bubbles/ops/rows.py b/bubbles/ops/rows.py index 3c84ebf..cbc185d 100644 --- a/bubbles/ops/rows.py +++ b/bubbles/ops/rows.py @@ -18,6 +18,7 @@ from time import strptime from base64 import b64decode import json +import re # FIXME: add cheaper version for already sorted data # FIXME: BasicAuditProbe was removed @@ -676,7 +677,7 @@ def _(ctx, iterator, field, substitutions): """Substitute field using text substitutions""" # Compile patterns fields = iterator.fields - substitutions = [(re.compile(patt), r) for (patt, r) in subsitutions] + substitutions = [(re.compile(patt), r) for (patt, r) in substitutions] index = fields.index(field) for row in iterator: row = list(row)