[LNT] r308566 - Match the format of the rest of the file
Chris Matthews via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 19 17:09:12 PDT 2017
Author: cmatthews
Date: Wed Jul 19 17:09:12 2017
New Revision: 308566
URL: http://llvm.org/viewvc/llvm-project?rev=308566&view=rev
Log:
Match the format of the rest of the file
Modified:
lnt/trunk/lnt/server/ui/api.py
Modified: lnt/trunk/lnt/server/ui/api.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/api.py?rev=308566&r1=308565&r2=308566&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/api.py (original)
+++ lnt/trunk/lnt/server/ui/api.py Wed Jul 19 17:09:12 2017
@@ -268,12 +268,11 @@ class Runs(Resource):
@staticmethod
@requires_auth_token
def post():
- '''Add a new run into the lnt database'''
- ts = request.get_testsuite()
+ """Add a new run into the lnt database"""
db = request.get_db()
data = request.data
result = lnt.util.ImportData.import_from_string(current_app.old_config,
- g.db_name, db, g.testsuite_name, data)
+ g.db_name, db, g.testsuite_name, data)
new_url = ('%sapi/db_%s/v4/%s/runs/%s' %
(request.url_root, g.db_name, g.testsuite_name,
More information about the llvm-commits
mailing list