Compare commits

...

4 Commits

1 changed files with 3 additions and 3 deletions

View File

@ -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())