From ac8aa110688005de09698ca336e14a23662289ca Mon Sep 17 00:00:00 2001 From: pengtao Date: Wed, 10 Jul 2019 10:37:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BD=8D=E7=BD=AE=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/location.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/handler/location.py b/handler/location.py index e310529..1fae35f 100644 --- a/handler/location.py +++ b/handler/location.py @@ -20,6 +20,9 @@ parser.add_argument('in_used') class Location(Resource): + def __init__(self): + self.args = parser.parse_args() + def get(self): sql = f"select id,gameid,area,type from localtion where in_used=1" try: