summaryrefslogtreecommitdiffstats
path: root/rest_server.py
diff options
context:
space:
mode:
Diffstat (limited to 'rest_server.py')
-rw-r--r--rest_server.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/rest_server.py b/rest_server.py
index 5c84fdb..20c1783 100644
--- a/rest_server.py
+++ b/rest_server.py
@@ -7,20 +7,19 @@
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
-import io
import json
-import logging
import logging.config
import os
-from storperf.db.job_db import JobDB
-from storperf.plot.barchart import Barchart
-from storperf.storperf_master import StorPerfMaster
import sys
from flask import abort, Flask, request, jsonify, send_from_directory
from flask_restful import Resource, Api, fields
from flask_restful_swagger import swagger
+from storperf.db.job_db import JobDB
+from storperf.plot.barchart import Barchart
+from storperf.storperf_master import StorPerfMaster
+
app = Flask(__name__, static_url_path="")
api = swagger.docs(Api(app), apiVersion='1.0')
@@ -37,7 +36,6 @@ def send_swagger(path):
def results_page(job_id):
job_db = JobDB()
- params = {}
params = job_db.fetch_workload_params(job_id)