Skip to content

Commit

Permalink
Print statements removed
Browse files Browse the repository at this point in the history
  • Loading branch information
ms8909 committed Jul 16, 2020
1 parent 032fc4d commit 1517d4d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file modified __pycache__/explain.cpython-37.pyc
Binary file not shown.
Binary file modified lib/__pycache__/dashboard.cpython-37.pyc
Binary file not shown.
8 changes: 4 additions & 4 deletions lib/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def caching_exists_in_file(self, sql_query, graph_type):
if not random_id.empty:
result = random_id['random_id'].iloc[0]
dff = pd.read_csv("./data_storage/{}/{}.csv".format(graph_type, result))
print("{} {} {}".format(graph_type, "file exists", result))
#print("{} {} {}".format(graph_type, "file exists", result))
return True, True, dff
return False, True, None

Expand Down Expand Up @@ -100,11 +100,11 @@ def store_data_in_dict(self, df, sql_query, graph_type):
def caching_data_manager(self, df, sql_query, graph_type, calculated_funct=None, details_dict=None):
status_file, file_exist, dff = self.caching_exists_in_file(sql_query, graph_type)
if status_file:
print("{}/{}".format(graph_type, "exist in file"))
#print("{}/{}".format(graph_type, "exist in file"))

return dff
else:
print("{}/{}".format(graph_type, "don't exists"))
#print("{}/{}".format(graph_type, "don't exists"))
random_str = self.random_string_generator()
dict_bkp = self.creating_filtered_backup_file(sql_query, random_str, graph_type)
dff = psql.sqldf(sql_query, locals())
Expand Down Expand Up @@ -139,7 +139,7 @@ def find(self, df, y_variable, y_variable_predict, mode, param):
user_id = user_id['id'].iloc[0]
self.user_id = user_id
except Exception as e:
print("inside user track" )
#print("inside user track" )
user_id_val = self.random_string_generator()
user_id_csv = pd.DataFrame(data={"id": [user_id_val]})
user_id_csv.to_csv("data_storage/user/user_id.csv", index=False)
Expand Down

0 comments on commit 1517d4d

Please sign in to comment.