summaryrefslogtreecommitdiff
path: root/ausbutler/interface.py
diff options
context:
space:
mode:
Diffstat (limited to 'ausbutler/interface.py')
-rw-r--r--ausbutler/interface.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/ausbutler/interface.py b/ausbutler/interface.py
index 37af0e3..99b0e9d 100644
--- a/ausbutler/interface.py
+++ b/ausbutler/interface.py
@@ -1,6 +1,6 @@
from .db import Session
from .model import AusButler, Butler
-from .butler import cutoff, get_opponents, get_room
+from .butler import cutoff, get_opponents, get_room, normalize
import re
@@ -50,3 +50,7 @@ class Interface:
) / 2
self.session.commit()
+ def normalize_scores(self):
+ for butler in self.session.query(AusButler).all():
+ butler.corrected_score = normalize(butler)
+ self.session.commit()