We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10a45a1 commit d665a65Copy full SHA for d665a65
ORStools/common/client.py
@@ -48,6 +48,8 @@ class Client(QObject):
48
"""Performs requests to the ORS API services."""
49
50
overQueryLimit = pyqtSignal(int)
51
+ downloadProgress = pyqtSignal(int, int)
52
+
53
54
def __init__(self, provider: Optional[dict] = None, agent: Optional[str] = None) -> None:
55
"""
@@ -118,6 +120,10 @@ def fetch_with_retry(
118
120
119
121
blocking_request = QgsBlockingNetworkRequest()
122
123
+ blocking_request.downloadProgress.connect(
124
+ lambda r, t: self.downloadProgress.emit(r, t)
125
+ )
126
127
logger.log(f"url: {self.url}\nParameters: {json.dumps(post_json, indent=2)}", 0)
128
129
content = None
0 commit comments