Change Create Windows Task to main.py
parent
194c88b3e4
commit
82993a565a
|
|
@ -30,6 +30,7 @@ def database(query,name,user):
|
||||||
auth_plugin='mysql_native_password',
|
auth_plugin='mysql_native_password',
|
||||||
)
|
)
|
||||||
mydb.connect()
|
mydb.connect()
|
||||||
|
print("SQL Server Connect")
|
||||||
cursor = mydb.cursor()
|
cursor = mydb.cursor()
|
||||||
if "SELECT" in query:
|
if "SELECT" in query:
|
||||||
if user:
|
if user:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue