fix: [chat explorer] fix protocols name list order

This commit is contained in:
terrtia 2024-12-16 11:15:10 +01:00
parent 3faea7997c
commit ab54924bba
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -110,6 +110,7 @@ def get_chat_protocols_meta():
for protocol_id in get_chat_protocols():
protocol = ChatProtocol(protocol_id)
metas.append(protocol.get_meta(options={'icon'}))
metas = sorted(metas, key=lambda d: d['id'])
return metas
class ChatProtocol: # TODO first seen last seen ???? + nb by day ????