# Bugfix parcel updating

* fixes bug where under certain circumstances the parcel updating would fail
pull/79/head
mpeltriaux 3 years ago
parent db9881d05f
commit a464ed9e3f

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

Loading…
Cancel
Save