summaryrefslogtreecommitdiff
path: root/examples/dashboard
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-01-15 15:29:14 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2017-01-15 15:29:14 +0100
commit50a8ed90f340167d9ecfb7c61a0535797bda476c (patch)
tree877d6a273b718df35afa58de4dd819bf5252066a /examples/dashboard
parent946c41d73f1b56b1a677bc66ba0debee5a6245f5 (diff)
downloadpython-gamelocker-50a8ed90f340167d9ecfb7c61a0535797bda476c.tar.gz
python-gamelocker-50a8ed90f340167d9ecfb7c61a0535797bda476c.zip
dashboard: config option for match limit
Diffstat (limited to 'examples/dashboard')
-rw-r--r--examples/dashboard/app.py2
-rw-r--r--examples/dashboard/config_example.py3
2 files changed, 4 insertions, 1 deletions
diff --git a/examples/dashboard/app.py b/examples/dashboard/app.py
index 0934da8..78c3262 100644
--- a/examples/dashboard/app.py
+++ b/examples/dashboard/app.py
@@ -33,7 +33,7 @@ def data():
data = dict()
api = gamelocker.Gamelocker("aaa.bbb.ccc").vainglory()
- data["number"] = 50
+ data["number"] = config.batchsize
matches = api.matches(data["number"])
gameModes = dict()
diff --git a/examples/dashboard/config_example.py b/examples/dashboard/config_example.py
new file mode 100644
index 0000000..092b106
--- /dev/null
+++ b/examples/dashboard/config_example.py
@@ -0,0 +1,3 @@
+secret_key = "ub3rsecure"
+debug = True
+batchsize = 50