@@ -150,7 +150,7 @@ def parseBucketChunks(task_tuple):
150
150
i = 0
151
151
cnt = 250 + cnt
152
152
logging .debug ("Found %d markers in thread %d so far at %d chunks." ,
153
- sum (len (v ) for v in markers .values ()), pid , cnt )
153
+ sum (len (v ) for v in markers .values ()), pid , cnt )
154
154
155
155
return markers
156
156
@@ -286,7 +286,9 @@ def get_name_from_uuid(self):
286
286
pass
287
287
288
288
try :
289
- profile = json .loads (urllib .request .urlopen (UUID_LOOKUP_URL + sname ).read ().decode ("utf-8" ))
289
+ profile = json .loads (
290
+ urllib .request .urlopen (UUID_LOOKUP_URL + sname ).read ().decode ("utf-8" )
291
+ )
290
292
if 'name' in profile :
291
293
profile ['retrievedAt' ] = time .mktime (time .localtime ())
292
294
PlayerDict .uuid_cache [sname ] = profile
@@ -437,8 +439,8 @@ def create_marker_from_filter_result(poi, result):
437
439
d ["createInfoWindow" ] = result ['createInfoWindow' ]
438
440
439
441
# Polylines and polygons
440
- if ('polyline' in result and hasattr (result ['polyline' ], '__iter__' )) or \
441
- 'polygon' in result and hasattr (result ['polygon' ], '__iter__' ):
442
+ if (( 'polyline' in result and hasattr (result ['polyline' ], '__iter__' )) or
443
+ 'polygon' in result and hasattr (result ['polygon' ], '__iter__' )) :
442
444
# If the points form a line or closed shape
443
445
d ['isLine' ] = 'polyline' in result
444
446
# Collect points
@@ -455,7 +457,7 @@ def create_marker_from_filter_result(poi, result):
455
457
if 'fill' in result :
456
458
d ['fill' ] = result ['fill' ]
457
459
else :
458
- d ['fill' ] = not d ['isLine' ] # fill polygons by default
460
+ d ['fill' ] = not d ['isLine' ] # fill polygons by default
459
461
460
462
if 'weight' in result :
461
463
d ['strokeWeight' ] = result ['weight' ]
@@ -573,13 +575,13 @@ def main():
573
575
markers = dict ((name , dict (created = False , raw = [], name = filter_name ))
574
576
for name , filter_name , __ , __ , __ , __ in filters )
575
577
576
- all_rsets = set (map (lambda f : f [3 ], filters ))
578
+ all_rsets = set (map (lambda f : f [3 ], filters ))
577
579
logging .info ("Will search %s region sets using %s filters" , len (all_rsets ), len (filters ))
578
580
579
581
# apply filters to regionsets
580
582
if not args .skipscan :
581
583
for rset in all_rsets :
582
- rset_filters = list (filter (lambda f : f [3 ] == rset , filters ))
584
+ rset_filters = list (filter (lambda f : f [3 ] == rset , filters ))
583
585
logging .info ("Calling handleEntities for %s with %s filters" , rset , len (rset_filters ))
584
586
handleEntities (rset , config , args .config , rset_filters , markers )
585
587
0 commit comments