diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2016-04-07 14:28:07 +0200 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2016-04-07 14:28:07 +0200 |
commit | 7bf40ffe6bd2e0228eefac2d8e15c951ea731da5 (patch) | |
tree | b410278b33bcb1191c1c0657b9241dfa10079890 | |
parent | 125218ed0281efcb2b0c347867e8d82b6189e47a (diff) |
Handle '-' in exemption field.
-rw-r--r-- | scrapersources/postliste-oep | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scrapersources/postliste-oep b/scrapersources/postliste-oep index c6e6bc6..33b7e44 100644 --- a/scrapersources/postliste-oep +++ b/scrapersources/postliste-oep @@ -196,6 +196,8 @@ def fetch_oep_entry(id, datastorage): vtype = fieldmap[vtype] if 'doctype' == vtype: value = doctypemap[value] + if 'exemption' == vtype and '-' == value: + value = None if 'caseid' == vtype: caseyear, caseseqnr = value.split("/") data['caseyear'] = caseyear |