0

Merge pull request #1219 from MasterofJOKers/player_poi_fix

[genPOI] Fix generation of multiple players
This commit is contained in:
Aaron Griffith
2015-03-12 13:00:24 -04:00

View File

@@ -14,16 +14,16 @@ markers.js holds a list of which markerSets are attached to each tileSet
''' '''
import os
import time
import logging
import json
import sys
import re
import urllib2
import multiprocessing
import itertools
import gzip import gzip
import itertools
import json
import logging
import multiprocessing
import os
import re
import sys
import time
import urllib2
from collections import defaultdict from collections import defaultdict
from multiprocessing import Pool from multiprocessing import Pool
@@ -499,7 +499,7 @@ def main():
keyfunc = lambda x: x[4] keyfunc = lambda x: x[4]
sfilters = sorted(filters, key=keyfunc) sfilters = sorted(filters, key=keyfunc)
for worldpath, worldpath_filters in itertools.groupby(sfilters, keyfunc): for worldpath, worldpath_filters in itertools.groupby(sfilters, keyfunc):
handlePlayers(worldpath, worldpath_filters, markers) handlePlayers(worldpath, list(worldpath_filters), markers)
# add manual POIs # add manual POIs
# group filters by name of the render, because only filter functions for # group filters by name of the render, because only filter functions for