summaryrefslogtreecommitdiff
path: root/butler/config.json
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2020-10-08 22:33:25 +0200
committeremkael <emkael@tlen.pl>2020-10-08 22:33:25 +0200
commitbdff54b0ccbee5753e3756bb2a592813aeab7671 (patch)
treecad20e2267aa9ef9faa497c5999f1a30ca403717 /butler/config.json
parentd0f4f64a6f946d56a5a7304eb07edda66e725b4b (diff)
Butler merge script
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;"
+ ]
+ }
+}