Skip to content

Commit

Permalink
Support Qt6
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Oct 30, 2024
1 parent 9bd65f7 commit 7a86fab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions wfsOutputExtension/metadata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ icon=icon.png
experimental=False
deprecated=False
server=True
supportsQt6=True
4 changes: 2 additions & 2 deletions wfsOutputExtension/plausible.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def _send_stat_event() -> bool:
if extra_debug:
request.setRawHeader(b"X-Debug-Request", b"true")
request.setRawHeader(b"X-Forwarded-For", b"127.0.0.1")
request.setHeader(QNetworkRequest.ContentTypeHeader, "application/json")
request.setHeader(QNetworkRequest.KnownHeaders.ContentTypeHeader, "application/json")

# Qgis.QGIS_VERSION → 3.34.6-Prizren
# noinspection PyUnresolvedReferences
Expand Down Expand Up @@ -128,7 +128,7 @@ def _send_stat_event() -> bool:
message = (
f"Request HTTP OS process '{os.getpid()}' sent to '{plausible_url}' with domain "
f"'{plausible_domain} : ")
if r.error() == QNetworkReply.NoError:
if r.error() == QNetworkReply.NetworkError.NoError:
logger.info(message + "OK")
else:
logger.warning("{} {}".format(message, r.error()))
Expand Down

0 comments on commit 7a86fab

Please sign in to comment.