tweak call args

This commit is contained in:
Damien Elmes 2011-03-30 20:50:33 +09:00
parent 014cc035ee
commit 525787b33f

View file

@ -20,18 +20,18 @@ colSusp = "#ff0"
class Graphs(object): class Graphs(object):
def __init__(self, deck, selective=True): def __init__(self, deck):
self.deck = deck self.deck = deck
self._stats = None self._stats = None
self.selective = selective
self.type = 0 self.type = 0
self.width = 600 self.width = 600
self.height = 200 self.height = 200
def report(self, type=0): def report(self, type=0, selective=True):
# 0=days, 1=weeks, 2=months # 0=days, 1=weeks, 2=months
# period-dependent graphs # period-dependent graphs
self.type = type self.type = type
self.selective = selective
txt = self.css txt = self.css
txt += self.dueGraph() txt += self.dueGraph()
txt += self.repsGraph() txt += self.repsGraph()