Browse Source

c'est trié par ordre de politesse

pull/3/head
Figg 10 months ago
parent
commit
01caaef694
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      scripts/find_gromots.py

+ 1
- 1
scripts/find_gromots.py View File

18
     if msg.sender_name not in msg_gros_mots_grp: msg_gros_mots_grp[msg.sender_name] = []
18
     if msg.sender_name not in msg_gros_mots_grp: msg_gros_mots_grp[msg.sender_name] = []
19
     msg_gros_mots_grp[msg.sender_name].append(msg)
19
     msg_gros_mots_grp[msg.sender_name].append(msg)
20
 
20
 
21
-for name in msg_gros_mots_grp:
21
+for name in sorted(msg_gros_mots_grp, key = lambda k: len(msg_gros_mots_grp[k])):
22
     print(name)
22
     print(name)
23
 
23
 
24
     for msg in msg_gros_mots_grp[name]:
24
     for msg in msg_gros_mots_grp[name]:

Loading…
Cancel
Save