fix python imports
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from .secret import host, user, password, database
|
||||
from back.secret import host, user, password, database
|
||||
|
||||
import pymysql.cursors
|
||||
|
||||
@@ -14,9 +14,4 @@ def get_db():
|
||||
try:
|
||||
yield connection
|
||||
finally:
|
||||
connection.close()
|
||||
|
||||
# cursor = connection.cursor()
|
||||
# cursor.execute(sql, ())
|
||||
# cursor.fetchall()
|
||||
# connection.commit()
|
||||
connection.close()
|
||||
Reference in New Issue
Block a user