ref: 38726204c8b8a481f378166d57011efb7c64737b
parent: 810e20cc048f3418205adca744dc79c3c59098bc
author: Bryan Bishop <[email protected]>
date: Sat May 19 11:30:02 EDT 2012
better comments on trainer_group_report
--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -3525,12 +3525,14 @@
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"