diff options
author | Bryan Bishop <kanzure@gmail.com> | 2012-05-19 15:30:02 -0500 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2012-05-19 15:30:02 -0500 |
commit | 9c1eaca2841cd7a4052192f79cf3871e55330ad4 (patch) | |
tree | 57f9c46df70f9b7e4e8b10ae68822888e80ddd51 | |
parent | 402ad18639735a38df69b34264ff8bd23dc0b991 (diff) |
better comments on trainer_group_report
original-commit-id: 38726204c8b8a481f378166d57011efb7c64737b
-rw-r--r-- | crystal.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3525,12 +3525,14 @@ def trainer_name_from_group(group_id, trainer_id=0): return text def trainer_group_report(): + """ Reports how many trainer ids are used in each trainer group. + """ output = "" total = 0 for trainer_group_id in trainer_group_maximums.keys(): group_name = trainer_group_names[trainer_group_id]["name"] first_name = trainer_name_from_group(trainer_group_id).replace("\n", "") - trainers = len(set(trainer_group_maximums[trainer_group_id])) + trainers = len(trainer_group_maximums[trainer_group_id]) total += trainers output += "group "+hex(trainer_group_id)+":\n" output += "\tname: "+group_name+"\n" |