Skip to content

Commit 722e057

Browse files
committed
close #473
1 parent 67346fe commit 722e057

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

python/borinud/v1/utils.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,17 @@ def params2record(p):
2828
if k1 in p and p.get(k1) != "*" and p.get(k1) is not None
2929
}}
3030

31+
# https://github.com/ARPA-SIMC/dballe/issues/201
32+
#Viene aggiunta la possibilità di specificare
33+
#leveltype2=MISSING_INT-1 o leveltype2="-", per significare "il
34+
#valore nel database deve essere "mancante" invece di "qualunque"
35+
36+
# solo per sistemi a 64 bit
37+
REQUIRED_MISSING_INT = 2147483646
38+
39+
for tl2 in ("leveltype2","l2"):
40+
if (tl2 in q):
41+
if (q[tl2] is None):
42+
q[tl2]= REQUIRED_MISSING_INT
3143

3244
return q

0 commit comments

Comments
 (0)