summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2012-05-20 00:20:31 -0500
committerBryan Bishop <kanzure@gmail.com>2012-05-20 00:20:31 -0500
commit2debb806862d113b459cb4bfecae4cd00e9023e9 (patch)
treeca26e5b20c45b96f49a90b4f1213b2514dcf1c1a
parente80e1c420c29b0cd9994319d7bedb50f8dcd7fa3 (diff)
add 'trainer_names' key to each trainer header in trainer_group_names
original-commit-id: 4c4517121331d8db6e508432e4e872a02299a94f
-rw-r--r--crystal.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/crystal.py b/crystal.py
index c61f4cd..bd15a9a 100644
--- a/crystal.py
+++ b/crystal.py
@@ -3901,7 +3901,7 @@ def make_trainer_group_name_trainer_ids(debug=True):
if debug:
print "starting to make trainer names and give ids to repeated trainer names"
- i = 1
+ i = 1
for header in trainer_group_table.headers:
trainer_names = [] # (name, trainer_header)
dupes = set()
@@ -3923,6 +3923,8 @@ def make_trainer_group_name_trainer_ids(debug=True):
# now add the trainer names to trainer_group_names
trainer_group_names[i]["trainer_names"] = [theader.make_constant_name() for theader in header.individual_trainer_headers]
+ i += 1
+
if debug:
print "done improving trainer names"