[973924]: / qiita_db / handlers / core.py

Download this file

18 lines (14 with data), 671 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
# -----------------------------------------------------------------------------
# Copyright (c) 2014--, The Qiita Development Team.
#
# Distributed under the terms of the BSD 3-clause License.
#
# The full license is in the file LICENSE, distributed with this software.
# -----------------------------------------------------------------------------
from .oauth2 import OauthBaseHandler, authenticate_oauth
import qiita_db as qdb
class ResetAPItestHandler(OauthBaseHandler):
@authenticate_oauth
def post(self):
drop_labcontrol = self.get_argument('drop_labcontrol', False)
qdb.environment_manager.drop_and_rebuild_tst_database(drop_labcontrol)