From ede6ccdc3555d82cbf584458b60ef8e31066e7f6 Mon Sep 17 00:00:00 2001 From: jjaen0823 Date: Mon, 31 May 2021 13:05:37 +0900 Subject: [PATCH] remove useless code --- db_connection.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/db_connection.py b/db_connection.py index e44e3fe..8e0dd94 100644 --- a/db_connection.py +++ b/db_connection.py @@ -5,15 +5,6 @@ class DBConnection: def __init__(self): - # self.DB = pymysql.connect( - # user='root', - # passwd='1234', - # host='localhost', - # port=3306, - # db='Restaurants', - # charset='utf8', - # cursorclass=pymysql.cursors.DictCursor - # ) self.DB = pymysql.connect( user='cau', passwd='kG6byywEExRr', @@ -79,4 +70,4 @@ def rollback(self): self.DB.close() def close_connection(self): - self.DB.close() \ No newline at end of file + self.DB.close()