Spaces:
Running
Running
Commit
·
444d443
1
Parent(s):
28bc63e
Update main.py
Browse files
main.py
CHANGED
@@ -29,7 +29,9 @@ def encode_url(url):
|
|
29 |
query_params = parse_qsl(query_string)
|
30 |
encoded_query_params = [(key, quote(value)) for key, value in query_params]
|
31 |
encoded_query_string = urlencode(encoded_query_params)
|
32 |
-
|
|
|
|
|
33 |
|
34 |
def load_exception_urls():
|
35 |
url = os.environ['EXCEPTIONS']
|
@@ -124,7 +126,8 @@ def index():
|
|
124 |
url = live_urls[int(id)]
|
125 |
feed = id
|
126 |
session['current_feed'] = id
|
127 |
-
|
|
|
128 |
id = feed
|
129 |
ip = ''.join(url.split('//')[-1]).split(':')[0]
|
130 |
print('IP:',ip)
|
|
|
29 |
query_params = parse_qsl(query_string)
|
30 |
encoded_query_params = [(key, quote(value)) for key, value in query_params]
|
31 |
encoded_query_string = urlencode(encoded_query_params)
|
32 |
+
finished = urlunsplit((scheme, netloc, path, encoded_query_string, fragment))
|
33 |
+
print(finished)
|
34 |
+
return finished
|
35 |
|
36 |
def load_exception_urls():
|
37 |
url = os.environ['EXCEPTIONS']
|
|
|
126 |
url = live_urls[int(id)]
|
127 |
feed = id
|
128 |
session['current_feed'] = id
|
129 |
+
|
130 |
+
url = encode_url(url)
|
131 |
id = feed
|
132 |
ip = ''.join(url.split('//')[-1]).split(':')[0]
|
133 |
print('IP:',ip)
|