File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 8
8
from app .models .pydantic .responses import Response
9
9
10
10
from .base import StrictBaseModel
11
- from ...crud .geostore import build_gadm_geostore
11
+ from ...crud .geostore import get_gadm_geostore_id
12
12
13
13
14
14
class AreaOfInterest (StrictBaseModel , ABC ):
@@ -35,16 +35,15 @@ class AdminAreaOfInterest(AreaOfInterest):
35
35
36
36
async def get_geostore_id (self ) -> UUID :
37
37
admin_level = sum (1 for field in (self .country , self .region , self .subregion ) if field is not None ) - 1
38
- geostore = await build_gadm_geostore (
38
+ geostore_id = await get_gadm_geostore_id (
39
39
admin_provider = self .provider ,
40
40
admin_version = self .version ,
41
41
adm_level = admin_level ,
42
- simplify = None ,
43
42
country_id = self .country ,
44
43
region_id = self .region ,
45
44
subregion_id = self .subregion ,
46
45
)
47
- return UUID (geostore . id )
46
+ return UUID (geostore_id )
48
47
49
48
50
49
class AnalysisStatus (str , Enum ):
You can’t perform that action at this time.
0 commit comments