File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
mapswipe_workers/mapswipe_workers
project_types/arbitrary_geometry Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- from typing import Any , Dict , List , Optional
1+ from typing import Dict , List , Optional , Union
22
33from osgeo import ogr
44
@@ -9,9 +9,9 @@ class Task(BaseTask):
99 def __init__ (
1010 self ,
1111 group : object ,
12- featureId : Any [int , str ],
12+ featureId : Union [int , str ],
1313 featureGeometry : Dict ,
14- center : Optional [List [float , float ]],
14+ center : Optional [List [float ]],
1515 reference : Optional [int ],
1616 screen : Optional [int ],
1717 ):
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ def gunzip_bytes_obj(bytes_obj: bytes) -> str:
2424def compress_tasks (tasks_list : List [Dict ]) -> str :
2525 """Compress tasks for footprint project type using gzip."""
2626 json_string_tasks = json .dumps (tasks_list ).replace (" " , "" ).replace ("\n " , "" )
27- compressed_tasks = gzip_str . gzip_str (json_string_tasks )
27+ compressed_tasks = gzip_str (json_string_tasks )
2828 # we need to decode back, but only when using Python 3.6
2929 # when using Python 3.7 it just works
3030 # Unfortunately the docker image uses Python 3.6
You can’t perform that action at this time.
0 commit comments