Update app.py
Browse files
app.py
CHANGED
@@ -56,16 +56,14 @@ class DataList:
|
|
56 |
df = self.table
|
57 |
if search_query:
|
58 |
df = df[df.name_lowercase.str.contains(search_query.lower())]
|
|
|
59 |
df = self.filter_table(df, filter_names,filter_names2,filter_names3)
|
60 |
result = self.to_html(df, self.table_header)
|
61 |
return result
|
62 |
|
63 |
@staticmethod
|
64 |
-
def filter_table(df: pd.DataFrame, filter_names: list[str], filter_names2: list[str]
|
65 |
df = df.loc[df.Type.isin(set(filter_names))]
|
66 |
-
print(filter_name3)
|
67 |
-
vals= filter_names3
|
68 |
-
df = df.loc[df.Module.isin(list(vals))]
|
69 |
return df
|
70 |
|
71 |
@staticmethod
|
|
|
56 |
df = self.table
|
57 |
if search_query:
|
58 |
df = df[df.name_lowercase.str.contains(search_query.lower())]
|
59 |
+
df = df.loc[df.Module.isin(list(filter_name3))]
|
60 |
df = self.filter_table(df, filter_names,filter_names2,filter_names3)
|
61 |
result = self.to_html(df, self.table_header)
|
62 |
return result
|
63 |
|
64 |
@staticmethod
|
65 |
+
def filter_table(df: pd.DataFrame, filter_names: list[str], filter_names2: list[str]) -> pd.DataFrame:
|
66 |
df = df.loc[df.Type.isin(set(filter_names))]
|
|
|
|
|
|
|
67 |
return df
|
68 |
|
69 |
@staticmethod
|