Change Create Windows Task to main.py
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user