From 8a8e758a736c150ea42efe394775fdd7b5fbe5a0 Mon Sep 17 00:00:00 2001 From: luoning Date: Fri, 2 Feb 2018 21:21:46 +0800 Subject: [PATCH] =?UTF-8?q?[m]=20add=5Fawards=E5=8F=82=E6=95=B0=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index 9580e46..39dc0f3 100644 --- a/src/main.py +++ b/src/main.py @@ -58,7 +58,7 @@ def award(): @app.route('/add_awards', method='POST') def add_awards(): - return lottery.add_awards(b.request.json) + return lottery.add_awards(b.request.json['awards']) @app.route('/reset')