# Bugfix parcel updating

* fixes bug where under certain circumstances the parcel updating would fail
This commit is contained in:
mpeltriaux 2022-01-19 17:20:13 +01:00
parent 155f4ff304
commit c51d0bc72f

View File

@ -180,11 +180,14 @@ class ParcelWFSFetcher(AbstractWFSFetcher):
members = collection.get( members = collection.get(
"wfs:member", "wfs:member",
[], None,
) )
if members is not None:
if len(members) > 1: if len(members) > 1:
# extend feature list with found list of new feature members
features += members features += members
else: else:
# convert single found feature member into list and extent feature list
features += [members] features += [members]
if collection.get("@next", None) is not None: if collection.get("@next", None) is not None: