Compare commits
No commits in common. "35d70be495a3085d9e5e3213f72233646860265b" and "2e3ce28468b98436fc22500b3bab5c5c8dda7dca" have entirely different histories.
35d70be495
...
2e3ce28468
@ -18,13 +18,13 @@ class CMLAccountManager():
|
||||
|
||||
def find_user(self, username):
|
||||
try:
|
||||
cursor = self.conn.cursor(buffered=True)
|
||||
cursor = self.conn.cursor()
|
||||
except:
|
||||
if self.conn.is_connected():
|
||||
self.conn.close()
|
||||
print("Restart DB Connection")
|
||||
self.conn = mysql.connector.connect(**self.config)
|
||||
cursor = self.conn.cursor(buffered=True)
|
||||
cursor = self.conn.cursor()
|
||||
|
||||
query = "SELECT * FROM `People` WHERE `account`=%s"
|
||||
param = (username, )
|
||||
|
||||
@ -63,10 +63,7 @@ async def bind(ctx: commands.Context, username: str):
|
||||
elif group == 'DSP':
|
||||
dc_group = 'DSP 組'
|
||||
elif group == 'GRAPHICS':
|
||||
if teacher == 'robin':
|
||||
dc_group = 'Robin 組'
|
||||
else:
|
||||
dc_group = 'G 組'
|
||||
dc_group = 'G 組'
|
||||
elif group == 'NETWORK':
|
||||
dc_group = 'N 組'
|
||||
elif group == 'AIMM':
|
||||
|
||||
Loading…
Reference in New Issue
Block a user