From 1517d4d3903d5a073bbd0082848086071b0e81e1 Mon Sep 17 00:00:00 2001 From: Muddassar Sharif Date: Thu, 16 Jul 2020 23:34:37 +0500 Subject: [PATCH] Print statements removed --- __pycache__/explain.cpython-37.pyc | Bin 2997 -> 3185 bytes lib/__pycache__/dashboard.cpython-37.pyc | Bin 22016 -> 21853 bytes lib/dashboard.py | 8 ++++---- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/__pycache__/explain.cpython-37.pyc b/__pycache__/explain.cpython-37.pyc index 45d57520abee026b862cba29632eceb6e4642441..9b4704738ec204edcb9ac648d992938e8d080292 100644 GIT binary patch delta 990 zcmY*Y&ubGw6n?YW-<#bejcucrx_Ho5B(&A~GeyxNh*-pm(O_B9Y>b=6O*)xqQYPdO z@m44-9s~~?Jm}Sf{sVdvFJAi>^dh21PrglR!5#M7H}k&ty*F=WKTiJ2Sl3Kb2YmKk zC7pN457uje6oU7{=iVLxa7kBog|1S8uF6F>wjt0QgDP>w4Vj)|f-Ch20asoH9t&d( zLXndJj;`vTK)!}O@#LyK|?K`z{v01h~zsZWV z+Cf08>G>7=WMj%}9QfKJv85%eiroNH+;ie{q9jt&dlH5_L@o#X6E4eI%< zpzQCWpe)}mGU~MpDyutw>uIAy$Ah0z7H|8s`~vZXQcmFPqz zVz8-vBH7@(nhq|j3DOI0sqXQ!Q2~n)#1IOiN4@53j7Gl`Jr_X~V3U`@Z}nTepm=_x zRxFigG1ph^3Zkx0%h@405>A+Ikzq%e^Q2s>m$rjDdX`KCJ$-I`JR+Tm;CuuZBFF__ e^d)jP5R6;oVz6RNl4HSRW07QnH%2Db1K}?{1_Lbs delta 813 zcmY*X&1(};5TDs>_Io$!SCXofDj2LEtp{r@#1EthB7T5KYEZ(GjU{QbNw=@qz}xna z9z+o;@8oTR7Y|-M*o)r0c<|I?j^e?q|AF(GD!9WA^L{hG-@G^P{VsgUdpBLz0{Xta z$W}jRK6-Bz9EkVI*PR0d2r$+HCDvCUHnhxEZu|H;#O1RDUR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)m6rt34e=2_VtS;Oby zbaG-jr@t@wLs`Q4Y_~|r*V#-@IPx~ex(Q&(nKXPd!Kai(X1IpFgFZ5p>r&5#lB+oI zYY4RnJp48Gub#>Zahq|M{TT0SAG+Z;q6+`F(GaLo7A0dOtQ{OlpWm2fN^gKZO3c)h#!TKQbMM z&t=PzN$UoU5}3xx%VkN^G)e0~!4DdXP`knIY`QSJKCqp9z{&?36#nVhhH*O)x)6Aw xK84Z{LOF&Cv)RF;HJs`{q4F?5%$rH3jpWSmsIJG{88ro;T8|{@Zsvce|3B&4?~4Ec diff --git a/lib/dashboard.py b/lib/dashboard.py index 51311ad..d079608 100644 --- a/lib/dashboard.py +++ b/lib/dashboard.py @@ -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 @@ -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()) @@ -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)