summaryrefslogtreecommitdiff
path: root/butler/config.json
diff options
context:
space:
mode:
Diffstat (limited to 'butler/config.json')
-rw-r--r--butler/config.json46
1 files changed, 46 insertions, 0 deletions
diff --git a/butler/config.json b/butler/config.json
new file mode 100644
index 0000000..eea10ba
--- /dev/null
+++ b/butler/config.json
@@ -0,0 +1,46 @@
+{
+ "1+2": {
+ "source": [
+ "dmp202021_1s",
+ "dmp202021_2se",
+ "dmp202021_2sw",
+ "dmp202021_2ne",
+ "dmp202021_2nw"
+ ],
+ "output": "dmp202021_b_0"
+ },
+ "1": {
+ "source": [
+ "dmp202021_1s"
+ ],
+ "output": "dmp202021_b_1"
+ },
+ "2": {
+ "source": [
+ "dmp202021_2sw",
+ "dmp202021_2ne",
+ "dmp202021_2nw",
+ "dmp202021_2se"
+ ],
+ "output": "dmp202021_b_2"
+ },
+ "__groups": {
+ "dmp202021_e": "E",
+ "dmp202021_1s": "S",
+ "dmp202021_1n": "N",
+ "dmp202021_2se": "SE",
+ "dmp202021_2sw": "SW",
+ "dmp202021_2ne": "NE",
+ "dmp202021_2nw": "NW"
+ },
+ "__queries": {
+ "dmp202021_2se": [
+ "INSERT INTO _teams(id, bye) VALUES(15, 2),(16, 2);",
+ "INSERT INTO _matches(rnd, tabl, homet, visit, mtitle) SELECT rnd, 8, 15, 16, '--' FROM rounds WHERE rnd < 14;",
+ "INSERT INTO _matches(rnd, tabl, homet, visit, mtitle) SELECT 14, id, id, id+8, '--' FROM teams WHERE id < 9;",
+ "INSERT INTO _matches(rnd, tabl, homet, visit, mtitle) SELECT 15, id, id, id+8, '--' FROM teams WHERE id < 9;",
+ "INSERT INTO _segments(rnd, segment, tabl, homet, visit, towel) SELECT rnd, 1, 8, 15, 16, 1 FROM rounds;",
+ "INSERT INTO _segments(rnd, segment, tabl, homet, visit, towel) SELECT rnd, 2, 8, 15, 16, 1 FROM rounds;"
+ ]
+ }
+}