Skip to content

Commit

Permalink
Avoid unnecessary Capabilities requests (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
gacarrillor authored May 27, 2024
1 parent 97f75a3 commit 4ced33a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions swiss_locator/core/filters/swiss_locator_filter_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,12 @@ def handle_content(self, content, feedback: QgsFeedback, search: str):
):
self.dbg_info(f"get_cap: {url_components.netloc} {url}")
visited_capabilities.append(url_components.netloc)
self.fetch_request(
QNetworkRequest(QUrl(url)),
feedback,
slot=self.handle_capabilities_response,
data=(search, wms_url),
)
self.fetch_request(
QNetworkRequest(QUrl(url)),
feedback,
slot=self.handle_capabilities_response,
data=(search, wms_url),
)

else:
for loc in data["results"]:
Expand Down

0 comments on commit 4ced33a

Please sign in to comment.