bug fix: has sql
This commit is contained in:
parent
d0651ef6e6
commit
a7df7bfbce
2
setup.py
2
setup.py
|
@ -8,7 +8,7 @@ def read(fname):
|
||||||
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
||||||
args = {
|
args = {
|
||||||
"name":"data-transport",
|
"name":"data-transport",
|
||||||
"version":"1.4.4",
|
"version":"1.4.5",
|
||||||
"author":"The Phi Technology LLC","author_email":"info@the-phi.com",
|
"author":"The Phi Technology LLC","author_email":"info@the-phi.com",
|
||||||
"license":"MIT",
|
"license":"MIT",
|
||||||
"packages":["transport"]}
|
"packages":["transport"]}
|
||||||
|
|
|
@ -80,7 +80,9 @@ class SQLRW :
|
||||||
try:
|
try:
|
||||||
table = _args['table']
|
table = _args['table']
|
||||||
sql = "SELECT * FROM :table LIMIT 1".replace(":table",table)
|
sql = "SELECT * FROM :table LIMIT 1".replace(":table",table)
|
||||||
found = pd.read_sql(sql,self.conn).shape[0]
|
found = pd.read_sql(sql,self.conn).shape[0]
|
||||||
|
found = True
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pass
|
pass
|
||||||
return found
|
return found
|
||||||
|
|
Loading…
Reference in New Issue