From dee1bf4be0887a7640691fe6ce6ef114725d9c02 Mon Sep 17 00:00:00 2001 From: Alex Orid Date: Thu, 21 Jan 2021 17:02:19 -0500 Subject: [PATCH] Commented Old Code --- db.py | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/db.py b/db.py index d8be4d2..f649999 100644 --- a/db.py +++ b/db.py @@ -36,24 +36,24 @@ class db_module(): pass # This was a old function used prior to the creation of this class. I need to remake it. - def get_data_old(self, tableName: str = "", key: str = ""): - table = '_channel_commands' - table = tableName - - df = pd.read_sql_query('SELECT * FROM ' + table, engine) - stmt = "trigger == '" + key + "'" - temp = df.query(stmt) - result = temp.get("response") - - # print(result) - i = len(temp.index.values) - - if i == 1: - output = result[temp.index.values[0]] - pass - else: - output = "$$None$$" - return output +# def get_data_old(self, tableName: str = "", key: str = ""): +# table = '_channel_commands' +# table = tableName +# +# df = pd.read_sql_query('SELECT * FROM ' + table, engine) +# stmt = "trigger == '" + key + "'" +# temp = df.query(stmt) +# result = temp.get("response") +# +# # print(result) +# i = len(temp.index.values) +# +# if i == 1: +# output = result[temp.index.values[0]] +# pass +# else: +# output = "$$None$$" +# return output def get_data(self, tableName: str = "", key: str = ""): pass