mirror of
https://github.com/ARUP-CAS/aiscr-qgis-amcr-viewer.git
synced 2026-06-19 12:22:54 +02:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 56389e27d7 | |||
| c8d42e2459 |
@@ -2,7 +2,7 @@
|
|||||||
import os
|
import os
|
||||||
import csv
|
import csv
|
||||||
import requests
|
import requests
|
||||||
import xml.etree.ElementTree as ET # nosec B314
|
import xml.etree.ElementTree as ET # nosec
|
||||||
import time
|
import time
|
||||||
from qgis.core import QgsMessageLog, Qgis
|
from qgis.core import QgsMessageLog, Qgis
|
||||||
|
|
||||||
@@ -101,7 +101,7 @@ def fetch_set(internal_name, api_set, task=None):
|
|||||||
try:
|
try:
|
||||||
response = requests.get(BASE_URL, params=params, timeout=30)
|
response = requests.get(BASE_URL, params=params, timeout=30)
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
root = ET.fromstring(response.content)
|
root = ET.fromstring(response.content) # nosec
|
||||||
|
|
||||||
records = root.findall('.//oai:record', NS)
|
records = root.findall('.//oai:record', NS)
|
||||||
for rec in records:
|
for rec in records:
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ name=AMČR Viewer
|
|||||||
qgisMinimumVersion=3.4.0
|
qgisMinimumVersion=3.4.0
|
||||||
qgisMaximumVersion=4.99.0
|
qgisMaximumVersion=4.99.0
|
||||||
description=Viewing and downloading the AMČR data.
|
description=Viewing and downloading the AMČR data.
|
||||||
version=2.0.0-alpha.2
|
version=2.0.0-alpha.3
|
||||||
author=David Spáčil
|
author=David Spáčil
|
||||||
email=spacil@arub.cz
|
email=spacil@arub.cz
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user