Skip to content

Commit 95d5a94

Browse files
author
Giuseppe De Marco
authored
Merge pull request #158 from sil-vio/main
fix: #156
2 parents 67e8720 + d541ccd commit 95d5a94

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

src/spid_sp_test/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
BASE_DIR = Path(__file__).resolve().parent
9-
__version__ = "1.2.12"
9+
__version__ = "1.2.13"
1010
__name__ = "spid_sp_test"
1111
logger = logging.getLogger(__name__)
1212

src/spid_sp_test/indicepa.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@
22
import requests
33

44

5-
API_URL = "https://indicepa.gov.it/PortaleServices/api/aoo"
5+
API_URL = "https://www.indicepa.gov.it/PortaleServices/api/ente/ricerca"
66
logger = logging.getLogger(__name__)
77

88

99
def get_indicepa_by_ipacode(value):
1010
qs = """
1111
{"paginazione":
12-
{"campoOrdinamento":"codAoo",
12+
{"campoOrdinamento":"idEnte",
1313
"tipoOrdinamento":"asc",
1414
"paginaRichiesta":1,
1515
"numTotalePagine":null,
1616
"numeroRigheTotali":null,
1717
"paginaCorrente":null,
1818
"righePerPagina":null},
19-
"codiceFiscale":null,
20-
"codUniAoo":null,
21-
"desAoo":null,
22-
"denominazioneEnte":null,
19+
"codiceFiscaleRicerca":null,
20+
"area":null,
21+
"denominazione":null,
2322
"codEnte":"$IPACode",
24-
"codiceCategoria":null,
25-
"area":null
23+
"idTipoServizioDigitale":null,
24+
"lingueMinoritarie":null,
25+
"codiceCategoria":null
2626
}"""
2727

2828
qs_final = qs.replace("$IPACode", value)

tests/test_04_units.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ def test_indicepa():
55

66
def test_indicepa_2():
77
res = get_indicepa_by_ipacode('r_vda')
8+
9+
def test_indicepa_3():
10+
res = get_indicepa_by_ipacode('cnpaf_0')

0 commit comments

Comments
 (0)