Repository: CartoDB/cartoframes

Issue:
extra conditional shows up in cartocss for category torque maps
It maybe happening in others...

Discussion:

Patch:
diff --git a/cartoframes/layer.py b/cartoframes/layer.py
index f3173cb8..6ddaa641 100644
--- a/cartoframes/layer.py
+++ b/cartoframes/layer.py
@@ -408,7 +408,7 @@ class QueryLayer(AbstractLayer):
                 ]).format(col=self.color, query=self.orig_query)
                 agg_func = '\'CDB_Math_Mode(cf_value_{})\''.format(self.color)
                 self.scheme = {
-                    'bins': ','.join(str(i) for i in range(1, 11)),
+                    'bins': [str(i) for i in range(1, 11)],
                     'name': (self.scheme.get('name') if self.scheme
                              else 'Bold'),
                     'bin_method': '', }


Test patch:
diff --git a/test/test_layer.py b/test/test_layer.py
index 806afe2d..e24117b4 100644
--- a/test/test_layer.py
+++ b/test/test_layer.py
@@ -192,7 +192,7 @@ class TestQueryLayer(unittest.TestCase):
         ql._setup([BaseMap(), ql], 1)
         self.assertDictEqual(ql.scheme,
                              dict(name='Antique', bin_method='',
-                                  bins=','.join(str(i) for i in range(1, 11))))
+                                  bins=[str(i) for i in range(1, 11)]))
         # expect category maps query
         with open('qlayerquery.txt', 'w') as f:
             f.write(ql.query)