Skip to content

Commit

Permalink
Update To-Do_List.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SahilDave04 authored Sep 23, 2023
1 parent dca223f commit 69dbf07
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions To-Do_List.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def added(self,text,text1,m):
self.n = m

def cls(self):
con = mdb.connect(host="localhost", user="root", passwd="drumStick_4011", database="tdl2", auth_plugin='mysql_native_password')
con = mdb.connect(host="localhost", user="root", passwd="", database="tdl2", auth_plugin='mysql_native_password')
curs = con.cursor()
q = f"select task_name,task_cont from tasks where sr_no = '{self.n+1}'"
curs.execute(q)
Expand Down Expand Up @@ -63,7 +63,7 @@ def __init__(self):
self.warning.setHidden(True)
self.st = 0
self.task_input.setPlaceholderText("Task")
con = mdb.connect(host="localhost", user="root", passwd="drumStick_4011", database="tdl2", auth_plugin='mysql_native_password')
con = mdb.connect(host="localhost", user="root", passwd="", database="tdl2", auth_plugin='mysql_native_password')
curs = con.cursor()
q = f"select task_name,task_cont from tasks"
curs.execute(q)
Expand Down Expand Up @@ -122,7 +122,7 @@ def pl(self):
self.pt = 0
self.n_x = QPoint(x+490,y)
self.w.move(self.n_x.x(),self.n_x.y())
con = mdb.connect(host="localhost", user="root", passwd="drumStick_4011", database="tdl2",auth_plugin='mysql_native_password')
con = mdb.connect(host="localhost", user="root", passwd="", database="tdl2",auth_plugin='mysql_native_password')
curs = con.cursor()
q = f"select task_name,task_cont from tasks where sr_no = '{self.m+1}'"
curs.execute(q)
Expand Down Expand Up @@ -162,7 +162,7 @@ def deletion(self):
self.warning.setHidden(True)
self.m = self.lst_vw.currentRow()

con = mdb.connect(host="localhost", user="root", passwd="drumStick_4011", database="tdl2",auth_plugin='mysql_native_password')
con = mdb.connect(host="localhost", user="root", passwd="", database="tdl2",auth_plugin='mysql_native_password')
curs = con.cursor()
q = f"delete from tasks where sr_no = '{self.m+1}'"
curs.execute(q)
Expand Down Expand Up @@ -193,7 +193,7 @@ def adding(self):
self.warning.setHidden(True)
t_inptt = self.task_input.text()
self.task_input.clear()
con = mdb.connect(host="localhost", user="root", passwd="drumStick_4011", database="tdl2",auth_plugin='mysql_native_password')
con = mdb.connect(host="localhost", user="root", passwd="", database="tdl2",auth_plugin='mysql_native_password')
curs = con.cursor()
if t_inptt != "":
self.task_input.setPlaceholderText("Task")
Expand Down

0 comments on commit 69dbf07

Please sign in to comment.