xmas-app 0.13.0__tar.gz → 0.13.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {xmas_app-0.13.0 → xmas_app-0.13.1}/PKG-INFO +1 -1
- {xmas_app-0.13.0 → xmas_app-0.13.1}/pyproject.toml +1 -1
- {xmas_app-0.13.0 → xmas_app-0.13.1}/xmas_app/services/crud.py +3 -2
- {xmas_app-0.13.0 → xmas_app-0.13.1}/LICENSE +0 -0
- {xmas_app-0.13.0 → xmas_app-0.13.1}/README.md +0 -0
- {xmas_app-0.13.0 → xmas_app-0.13.1}/xmas_app/components/__init__.py +0 -0
- {xmas_app-0.13.0 → xmas_app-0.13.1}/xmas_app/components/association.py +0 -0
- {xmas_app-0.13.0 → xmas_app-0.13.1}/xmas_app/components/buttons.py +0 -0
- {xmas_app-0.13.0 → xmas_app-0.13.1}/xmas_app/components/label.py +0 -0
- {xmas_app-0.13.0 → xmas_app-0.13.1}/xmas_app/db.py +0 -0
- {xmas_app-0.13.0 → xmas_app-0.13.1}/xmas_app/db_uow.py +0 -0
- {xmas_app-0.13.0 → xmas_app-0.13.1}/xmas_app/deps/version_guard.py +0 -0
- {xmas_app-0.13.0 → xmas_app-0.13.1}/xmas_app/form.py +0 -0
- {xmas_app-0.13.0 → xmas_app-0.13.1}/xmas_app/main.py +0 -0
- {xmas_app-0.13.0 → xmas_app-0.13.1}/xmas_app/models/crud.py +0 -0
- {xmas_app-0.13.0 → xmas_app-0.13.1}/xmas_app/models/mappings.py +0 -0
- {xmas_app-0.13.0 → xmas_app-0.13.1}/xmas_app/pygeoapi/config.yaml +0 -0
- {xmas_app-0.13.0 → xmas_app-0.13.1}/xmas_app/pygeoapi/openapi.yaml +0 -0
- {xmas_app-0.13.0 → xmas_app-0.13.1}/xmas_app/pygeoapi/provider.py +0 -0
- {xmas_app-0.13.0 → xmas_app-0.13.1}/xmas_app/resources/mappings.toml +0 -0
- {xmas_app-0.13.0 → xmas_app-0.13.1}/xmas_app/schema.py +0 -0
- {xmas_app-0.13.0 → xmas_app-0.13.1}/xmas_app/settings.py +0 -0
- {xmas_app-0.13.0 → xmas_app-0.13.1}/xmas_app/split_service.py +0 -0
- {xmas_app-0.13.0 → xmas_app-0.13.1}/xmas_app/util/__init__.py +0 -0
- {xmas_app-0.13.0 → xmas_app-0.13.1}/xmas_app/util/codelist.py +0 -0
|
@@ -37,9 +37,11 @@ async def create(payload: InsertPayload, plan_id: str):
|
|
|
37
37
|
if item.geometry:
|
|
38
38
|
properties[geom_field] = item.geometry
|
|
39
39
|
feature = featuretype.model_validate(properties)
|
|
40
|
+
features.append(feature)
|
|
41
|
+
# if feature has geom_field, i.e. it's not a text feature, continue
|
|
40
42
|
if geom_field:
|
|
41
43
|
continue
|
|
42
|
-
# add unidirectional reference from corresponding plan to text feature
|
|
44
|
+
# else add unidirectional reference from corresponding plan to text feature
|
|
43
45
|
try:
|
|
44
46
|
plan = get_settings().repo.get(plan_id)
|
|
45
47
|
except Exception as e:
|
|
@@ -61,7 +63,6 @@ async def create(payload: InsertPayload, plan_id: str):
|
|
|
61
63
|
break
|
|
62
64
|
feature_updates.append(plan)
|
|
63
65
|
|
|
64
|
-
features.append(feature)
|
|
65
66
|
except ValidationError as e:
|
|
66
67
|
errors.append(e.errors())
|
|
67
68
|
if errors:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|