Update app.py
Browse files
app.py
CHANGED
@@ -13,17 +13,17 @@ def load_data():
|
|
13 |
parts = ppos.split('==')
|
14 |
tag = parts[0]
|
15 |
rest = parts[1] if len(parts) > 1 else ''
|
16 |
-
|
17 |
expanded = [tag]
|
|
|
18 |
bracket_matches = re.findall(r'\[([^\]]+)\]', tag)
|
19 |
if bracket_matches:
|
20 |
-
new_expanded = []
|
21 |
for match in bracket_matches:
|
|
|
22 |
for char in match:
|
23 |
for item in expanded:
|
24 |
new_expanded.append(item.replace(f'[{match}]', char))
|
25 |
-
|
26 |
-
|
27 |
return [f"{item}=={rest}" for item in expanded]
|
28 |
|
29 |
for row in df.itertuples(index=False, name=None):
|
|
|
13 |
parts = ppos.split('==')
|
14 |
tag = parts[0]
|
15 |
rest = parts[1] if len(parts) > 1 else ''
|
|
|
16 |
expanded = [tag]
|
17 |
+
|
18 |
bracket_matches = re.findall(r'\[([^\]]+)\]', tag)
|
19 |
if bracket_matches:
|
|
|
20 |
for match in bracket_matches:
|
21 |
+
new_expanded = []
|
22 |
for char in match:
|
23 |
for item in expanded:
|
24 |
new_expanded.append(item.replace(f'[{match}]', char))
|
25 |
+
expanded = new_expanded
|
26 |
+
|
27 |
return [f"{item}=={rest}" for item in expanded]
|
28 |
|
29 |
for row in df.itertuples(index=False, name=None):
|