From b87b4eeec26b22dd3945ec2d343644d105edb43c Mon Sep 17 00:00:00 2001 From: Vivek Teega Date: Wed, 29 May 2019 02:59:54 +0530 Subject: [PATCH] Fixing token DB path --- ranchimallflo_api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ranchimallflo_api.py b/ranchimallflo_api.py index 18ccb51..e389101 100644 --- a/ranchimallflo_api.py +++ b/ranchimallflo_api.py @@ -6,7 +6,7 @@ import os from flask import Flask from flask_cors import CORS -dbfolder = '' +dbfolder = '/home/vivek/Dev/RanchiMall/flo-token-tracking' app = Flask(__name__) CORS(app) @@ -50,7 +50,7 @@ def gettokeninfo(): if token is None: return jsonify(result='error') - dblocation = dbfolder + token + '.db' + dblocation = dbfolder + '/tokens/' + str(token) + '.db' if os.path.exists(dblocation): conn = sqlite3.connect(dblocation) c = conn.cursor() @@ -371,5 +371,5 @@ def test(): return render_template('test.html') if __name__ == "__main__": - app.run(debug=True, port=5009) + app.run(debug=True, port=5010)