summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ausbutler/interface.py5
-rw-r--r--butler.py1
2 files changed, 6 insertions, 0 deletions
diff --git a/ausbutler/interface.py b/ausbutler/interface.py
index 27ad703..b100a1d 100644
--- a/ausbutler/interface.py
+++ b/ausbutler/interface.py
@@ -78,6 +78,11 @@ class Interface(object):
butler, self.config['opponent_factor'])
self.session.commit()
+ def generate_all(self):
+ self.generate_segments()
+ self.generate_frames()
+ self.generate_table()
+
def generate_frames(self):
template = self.template.get_template('frame.html')
for round_no in range(1, Constants.rnd + 1):
diff --git a/butler.py b/butler.py
index b73674c..7c03ada 100644
--- a/butler.py
+++ b/butler.py
@@ -4,3 +4,4 @@ from ausbutler.interface import Interface
i = Interface(load_config('butler'))
i.calculate_all()
+i.generate_all()