diff --git a/wfsOutputExtension/plausible.py b/wfsOutputExtension/plausible.py index 7f292b3..9410df0 100644 --- a/wfsOutputExtension/plausible.py +++ b/wfsOutputExtension/plausible.py @@ -24,7 +24,8 @@ # For testing purpose, to test. -# Similar to QGIS dashboard https://feed.qgis.org/metabase/public/dashboard/df81071d-4c75-45b8-a698-97b8649d7228 +# Similar to QGIS dashboard +# https://feed.qgis.org/metabase/public/dashboard/df81071d-4c75-45b8-a698-97b8649d7228 # We only collect data listed in the list below # and the country according to IP address. # The IP is not stored by Plausible Community Edition https://github.com/plausible/analytics @@ -118,13 +119,15 @@ def _send_stat_event() -> bool: } # noinspection PyArgumentList - r: QNetworkReply = QgsNetworkAccessManager.instance().post(request, QByteArray(str.encode(json.dumps(data)))) + r: QNetworkReply = QgsNetworkAccessManager.instance().post( + request, QByteArray(str.encode(json.dumps(data)))) if not is_lizcloud: return True logger = Logger() message = ( - f"Request HTTP OS process '{os.getpid()}' sent to '{plausible_url}' with domain '{plausible_domain} : ") + f"Request HTTP OS process '{os.getpid()}' sent to '{plausible_url}' with domain " + f"'{plausible_domain} : ") if r.error() == QNetworkReply.NoError: logger.info(message + "OK") else: diff --git a/wfsOutputExtension/tools.py b/wfsOutputExtension/tools.py index 45b425d..2bd8763 100644 --- a/wfsOutputExtension/tools.py +++ b/wfsOutputExtension/tools.py @@ -5,12 +5,10 @@ import configparser from pathlib import Path -from typing import Dict, Tuple, Union +from typing import Union from qgis.core import Qgis, QgsMessageLog -from atlasprint.logger import Logger - def version() -> str: """ Returns the Lizmap current version. """