mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Made a new branch and made a pointer for the list. working on using this to add the routes back in to the list. Will need to look more in to it.
This commit is contained in:
parent
9ad8863c58
commit
8a728edb28
1 changed files with 4 additions and 2 deletions
|
@ -31,6 +31,7 @@ def main(*argv):
|
|||
location_dict[location.identifier].append(location)
|
||||
|
||||
changes = False
|
||||
pointer = 0
|
||||
for identifier, locations in sorted(location_dict.items()):
|
||||
disambiguate = any((
|
||||
len(locations) > 1,
|
||||
|
@ -38,7 +39,7 @@ def main(*argv):
|
|||
identifier in ambiguous_set,
|
||||
))
|
||||
location_split = identifier.split('-')
|
||||
print(location_split)
|
||||
print(location_split,pointer)
|
||||
if disambiguate:
|
||||
changes = True
|
||||
#print u'→'.encode('utf-8'),
|
||||
|
@ -65,7 +66,8 @@ def main(*argv):
|
|||
numbered_identifier = '%s-%s' % (new_identifier, i)
|
||||
# print numbered_identifier,
|
||||
location.identifier = numbered_identifier
|
||||
print(location)
|
||||
#print(location)
|
||||
pointer += 1
|
||||
|
||||
if changes:
|
||||
if argv and argv[0] == '--commit':
|
||||
|
|
Loading…
Add table
Reference in a new issue