parsee-mizuhashi commited on
Commit
6b2a0bc
1 Parent(s): 0ed19f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -2
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]} | {decodedurl}"
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
- xs += "<li><code>"+url+"</code></li>"
 
 
 
 
 
 
 
 
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> &lt;"+decodedurl+"&gt;</li>"
69
+ else:
70
+ xs += "<li><code>"+url+"</code></li>"
71
  xs += "</ol>"
72
  return xs
73