xmas-app 0.13.0__py3-none-any.whl → 0.13.1__py3-none-any.whl

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/services/crud.py CHANGED
@@ -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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xmas-app
3
- Version: 0.13.0
3
+ Version: 0.13.1
4
4
  Summary: The XLeitstelle model-driven application schema app.
5
5
  License: EUPL-1.2-or-later
6
6
  License-File: LICENSE
@@ -14,13 +14,13 @@ xmas_app/pygeoapi/openapi.yaml,sha256=h4J4kYugyNVMFjL_C2CLcntELgIkGh0N4VzpPf8u_t
14
14
  xmas_app/pygeoapi/provider.py,sha256=uKHK_Hsqale1C2pNRKYpyka9GnNHYvGBmbzfcSi05NE,25109
15
15
  xmas_app/resources/mappings.toml,sha256=VbDrooIdNmJOGLJtdg1Kh1bo_-DyUT7JL7aQMrBhRMU,97
16
16
  xmas_app/schema.py,sha256=3P-i14caMqydGsxNw6SOAcanEg1Qr4qxqciAow1aCUM,1507
17
- xmas_app/services/crud.py,sha256=n07v1fEVW9Qx4VOCCWcB6hlZeBgrCWaFGvf_cyWjknQ,4220
17
+ xmas_app/services/crud.py,sha256=lxH9kFIuOjaM1gEuWb9fbZ4a_hD2PI1_gjUwnfChD5g,4305
18
18
  xmas_app/settings.py,sha256=I4Q5JQRa0sEIBNX2Q8s3v_cr-bX0UiOjspCQ7_ThWCM,3419
19
19
  xmas_app/split_service.py,sha256=Ag_Ix2vMgT04OsQ0DIGK7WFKQlbktmmTqWlESO2ZgVs,26701
20
20
  xmas_app/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
21
  xmas_app/util/codelist.py,sha256=dUn7mOgTmV9Zi8A9iePyOyByMIe0Cf3ERn-n4eHrzM8,1961
22
- xmas_app-0.13.0.dist-info/METADATA,sha256=EmdThPReJuSovv332ivk36EriTGMsZCxZRK92CXbhLA,5323
23
- xmas_app-0.13.0.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
24
- xmas_app-0.13.0.dist-info/entry_points.txt,sha256=uve2b0hgPbVfiD047-hOI6_dD97ZytvCPWk7HsN9Xng,53
25
- xmas_app-0.13.0.dist-info/licenses/LICENSE,sha256=b8nnCcy_4Nd_v_okJ6mDKCvi64jkexzbSfIag7TR5mU,13827
26
- xmas_app-0.13.0.dist-info/RECORD,,
22
+ xmas_app-0.13.1.dist-info/METADATA,sha256=BcBSxfz_x6u-lnbXPIqPPJSCTURt8KxkJbyZ3l-HHFA,5323
23
+ xmas_app-0.13.1.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
24
+ xmas_app-0.13.1.dist-info/entry_points.txt,sha256=uve2b0hgPbVfiD047-hOI6_dD97ZytvCPWk7HsN9Xng,53
25
+ xmas_app-0.13.1.dist-info/licenses/LICENSE,sha256=b8nnCcy_4Nd_v_okJ6mDKCvi64jkexzbSfIag7TR5mU,13827
26
+ xmas_app-0.13.1.dist-info/RECORD,,