From bd8f357787318b51e160e4835ddb1dc8de132e03 Mon Sep 17 00:00:00 2001 From: MasterofJOKers Date: Mon, 9 Mar 2015 09:34:44 +0100 Subject: [PATCH 1/2] [genPOI] pass filters as list to handleManualPOI It was accidently passed as an iterator, so it was only iterable once, which lead to only the first manual poi being displayed. --- overviewer_core/aux_files/genPOI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overviewer_core/aux_files/genPOI.py b/overviewer_core/aux_files/genPOI.py index 4f1297f..0a4097a 100755 --- a/overviewer_core/aux_files/genPOI.py +++ b/overviewer_core/aux_files/genPOI.py @@ -504,7 +504,7 @@ def main(): sfilters = sorted(filters, key=keyfunc) for rname, rname_filters in itertools.groupby(sfilters, keyfunc): manualpois = config['renders'][rname]['manualpois'] - handleManual(manualpois, rname_filters, markers) + handleManual(manualpois, list(rname_filters), markers) logging.info("Done handling POIs") logging.info("Writing out javascript files") From 5764183e00277718f6365ebd4bb3ca63e179bb3c Mon Sep 17 00:00:00 2001 From: MasterofJOKers Date: Mon, 9 Mar 2015 09:37:10 +0100 Subject: [PATCH 2/2] [genPOI] remove unnecessary second import of json --- overviewer_core/aux_files/genPOI.py | 1 - 1 file changed, 1 deletion(-) diff --git a/overviewer_core/aux_files/genPOI.py b/overviewer_core/aux_files/genPOI.py index 0a4097a..993cbcf 100755 --- a/overviewer_core/aux_files/genPOI.py +++ b/overviewer_core/aux_files/genPOI.py @@ -24,7 +24,6 @@ import urllib2 import multiprocessing import itertools import gzip -import json from collections import defaultdict from multiprocessing import Pool