Skip to content

Commit fb30cf4

Browse files
committed
Fixing issue with None value handling in JSON
1 parent 0727c38 commit fb30cf4

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ You can easily customize your own configurations from the set of features that S
8484

8585
## Version
8686
```
87-
4.7.5.13.4
87+
4.7.5.13.5
8888
```
8989

9090
## RML-Test Cases

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.7.5.13.4
1+
4.7.5.13.5

rdfizer/rdfizer/functions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,7 @@ def string_substitution_json(string, pattern, row, term, ignore, iterator):
12561256
return None
12571257
else:
12581258
return None
1259-
1259+
12601260
if value is not None:
12611261
if (type(value).__name__) != "str":
12621262
if (type(value).__name__) != "float":
@@ -1346,8 +1346,8 @@ def string_substitution_json(string, pattern, row, term, ignore, iterator):
13461346
value = row[match]
13471347
else:
13481348
return None
1349-
1350-
if match is not None:
1349+
1350+
if value is not None:
13511351
if (type(value).__name__) == "int":
13521352
value = str(value)
13531353
if (type(value).__name__) == "float":

0 commit comments

Comments
 (0)