Spaces:
Running
Running
parsee-mizuhashi
commited on
Commit
•
6b2a0bc
1
Parent(s):
0ed19f1
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ def get_blocked_urls():
|
|
39 |
except:
|
40 |
decodedurl = None
|
41 |
if decodedurl:
|
42 |
-
result[i] = f"{result[i]}
|
43 |
|
44 |
if len(result) > 0:
|
45 |
return (result)
|
@@ -59,7 +59,15 @@ def handle_refresh():
|
|
59 |
"""
|
60 |
xs = "<ol>"
|
61 |
for url in get_blocked_urls():
|
62 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
xs += "</ol>"
|
64 |
return xs
|
65 |
|
|
|
39 |
except:
|
40 |
decodedurl = None
|
41 |
if decodedurl:
|
42 |
+
result[i] = f"{result[i]} < {decodedurl} >[thisisb64]"
|
43 |
|
44 |
if len(result) > 0:
|
45 |
return (result)
|
|
|
59 |
"""
|
60 |
xs = "<ol>"
|
61 |
for url in get_blocked_urls():
|
62 |
+
if "[thisisb64]" in url:
|
63 |
+
url = url.replace("[thisisb64]", "")
|
64 |
+
# primary color [primary_100]
|
65 |
+
nondecoded = url.split('<')[0]
|
66 |
+
decodedurl = url.split('<')[1]
|
67 |
+
decodedurl = f"<{decodedurl}>"
|
68 |
+
xs += "<li class='primary'><code>"+nondecoded+"</code> <"+decodedurl+"></li>"
|
69 |
+
else:
|
70 |
+
xs += "<li><code>"+url+"</code></li>"
|
71 |
xs += "</ol>"
|
72 |
return xs
|
73 |
|