forked from tildeverse/tilde.chat
Compare commits
4 Commits
1e2f0f03d6
...
045ff2965d
Author | SHA1 | Date |
---|---|---|
Ben Harris | 045ff2965d | |
Robert Miles | 405a8005e0 | |
Robert Miles | 4874785b6e | |
Ben Harris | 38d9604251 |
|
@ -1,6 +1,7 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import requests, json
|
import requests, json
|
||||||
import xml.etree.ElementTree as xml
|
import xml.etree.ElementTree as xml
|
||||||
|
from urllib.parse import quote
|
||||||
|
|
||||||
WORK_DIR = "/var/www/tilde.chat"
|
WORK_DIR = "/var/www/tilde.chat"
|
||||||
r = requests.get("http://localhost:8081/stats")
|
r = requests.get("http://localhost:8081/stats")
|
||||||
|
@ -41,9 +42,8 @@ for schannel in schannels:
|
||||||
):
|
):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
channel["webchatlink"] = "https://web.tilde.chat/?join=" + channel["name"].lstrip(
|
channel["webchatlink"] = "https://web.tilde.chat/?join=" + quote(channel["name"])
|
||||||
"#"
|
|
||||||
)
|
|
||||||
channels.append(channel)
|
channels.append(channel)
|
||||||
|
|
||||||
channels.sort(key=lambda x: x["name"].lower())
|
channels.sort(key=lambda x: x["name"].lower())
|
||||||
|
|
Loading…
Reference in New Issue