Skip to content

Commit d5a1d4b

Browse files
committed
fix bugs
1 parent d8d71d3 commit d5a1d4b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

mapswipe_workers/mapswipe_workers/project_types/arbitrary_geometry/task.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Any, Dict, List, Optional
1+
from typing import Dict, List, Optional, Union
22

33
from 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
):

mapswipe_workers/mapswipe_workers/utils/gzip_str.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def gunzip_bytes_obj(bytes_obj: bytes) -> str:
2424
def 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

0 commit comments

Comments
 (0)