OSDN Git Service

refactoring...
[ti2/ti2.git] / api_server.py
index c0ea372..403ec51 100755 (executable)
@@ -9,12 +9,13 @@ app = Flask(__name__)
 util = None
 collect_func = None
 
+
 def parse_linkpair_records():
-    result_strings = []
     linkpairs = collect_func()
     exporter = JsonExporter(util, linkpairs)
     return exporter.run() + "\n"
 
+
 def start_app(listen='localhost:23456', debug=True):
     app.config.update(
         DEBUG=debug,
@@ -22,6 +23,7 @@ def start_app(listen='localhost:23456', debug=True):
     )
     app.run()
 
+
 @app.route("/")
 def index():
     return parse_linkpair_records()