Fix in sqlalchemy
This commit is contained in:
parent
a1caceadac
commit
e99ad98362
2 changed files with 3 additions and 3 deletions
|
|
@ -168,7 +168,7 @@ class SqlClass:
|
|||
if self.conn:
|
||||
|
||||
self.conn.close()
|
||||
self.conn=None
|
||||
#self.conn=None
|
||||
|
||||
pass
|
||||
|
||||
|
|
|
|||
|
|
@ -677,9 +677,9 @@ class WebModel:
|
|||
|
||||
cursor=self.query(sql, conditions[1], self.connection_id)
|
||||
|
||||
if cursor==False:
|
||||
if not cursor:
|
||||
self.query_error=self.sqlclass.error_connection
|
||||
cursor.close()
|
||||
|
||||
return False
|
||||
else:
|
||||
return cursor
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue