Compare commits

..

No commits in common. "35d70be495a3085d9e5e3213f72233646860265b" and "2e3ce28468b98436fc22500b3bab5c5c8dda7dca" have entirely different histories.

2 changed files with 3 additions and 6 deletions

View File

@ -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, )

View File

@ -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':