forked from tildeverse/tilde.chat
Merge branch 'master' into bitbot-duccstats-mention
This commit is contained in:
commit
045ff2965d
|
@ -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