forked from tildeverse/tilde.chat
Sort channels alphabetically
This commit is contained in:
parent
710da45d5c
commit
4ccf152882
|
@ -21,6 +21,7 @@ for schannel in schannels:
|
|||
if channel["name"]=="#sudoers": # no stat output for #sudoers! it's a sekrit club of the ~team sysadmins!
|
||||
continue
|
||||
channels.append(channel)
|
||||
channels.sort(key=lambda x: x["name"].lower())
|
||||
out["channels"]=channels
|
||||
#print([x.text for x in d.findall("./channellist/channel/channeltopic/topictext")])
|
||||
with open("/var/www/html/tilde.chat/stats.json","w") as f:
|
||||
|
|
Loading…
Reference in New Issue