Fixing db commit folder
This commit is contained in:
parent
0d54475564
commit
62241a4ba9
@ -5,7 +5,7 @@ import sqlite3
|
|||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
|
||||||
dbfolder = '/home/production/deployed/flo-token-tracking/tokens/'
|
dbfolder = '/home/vivek/Desktop/flo-token-tracking-backup/flo-token-tracking'
|
||||||
|
|
||||||
|
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
@ -18,7 +18,7 @@ def index(token):
|
|||||||
if token is None:
|
if token is None:
|
||||||
token = 'rmt'
|
token = 'rmt'
|
||||||
form = SearchForm()
|
form = SearchForm()
|
||||||
dblocation = dbfolder + token + '.db'
|
dblocation = dbfolder + '/tokens/' +str(token) + '.db'
|
||||||
if os.path.exists(dblocation):
|
if os.path.exists(dblocation):
|
||||||
conn = sqlite3.connect(dblocation)
|
conn = sqlite3.connect(dblocation)
|
||||||
c = conn.cursor()
|
c = conn.cursor()
|
||||||
@ -57,7 +57,7 @@ def transactions(token):
|
|||||||
if token is None:
|
if token is None:
|
||||||
token = 'rmt'
|
token = 'rmt'
|
||||||
|
|
||||||
dblocation = dbfolder + token + '.db'
|
dblocation = dbfolder + '/tokens/' + str(token) + '.db'
|
||||||
|
|
||||||
if None not in [sourceFloAddress, destFloAddress]:
|
if None not in [sourceFloAddress, destFloAddress]:
|
||||||
if os.path.exists(dblocation):
|
if os.path.exists(dblocation):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user