Browse Source

Fix forgotten check of dict type

pull/63/merge
Florian Mounier 11 years ago
parent
commit
3c78e46bd8
  1. 2
      pygal/ghost.py

2
pygal/ghost.py

@ -63,7 +63,7 @@ class Ghost(object):
def add(self, title, values, secondary=False): def add(self, title, values, secondary=False):
"""Add a serie to this graph""" """Add a serie to this graph"""
if not is_list_like(values): if not is_list_like(values) and not isinstance(values, dict):
values = [values] values = [values]
if secondary: if secondary:
self.raw_series2.append((title, values)) self.raw_series2.append((title, values))

Loading…
Cancel
Save