Browse Source

Debug mode turned off

Akash Singh 3 years ago
parent
commit
1104474f3a
2 changed files with 2 additions and 12 deletions
  1. 1 11
      StatisticServer/routes.py
  2. 1 1
      run.py

+ 1 - 11
StatisticServer/routes.py

@@ -23,16 +23,6 @@ def main():
     return jsonify(success=True)
 
 
-@app.route('/test', methods=['GET'])
-def test():
-    dic = {}
-    dic['headers'] = request.headers
-    dic['environ'] = request.environ
-    print(dic)
-    print(vars(request))
-    return jsonify(success=True)
-
-
 @app.route('/stats', methods=['GET'])
 def stats_download(): # Will convert database data in csv and response csv file to request
     test_stats = db.session.query(TestRunStatistics).all()
@@ -100,4 +90,4 @@ def process_data(data, ip):
         if "no such table:" in str(ex):
             db.session.rollback()
             db.create_all()
-            process_data(data)
+            process_data(data, ip)

+ 1 - 1
run.py

@@ -2,4 +2,4 @@ from StatisticServer import app
 
 
 if __name__=="__main__":
-    app.run(debug=True, host='0.0.0.0')
+    app.run(debug=False, host='0.0.0.0')