Skip to content

Commit 257d3fb

Browse files
committed
Fix free and total null value
ref #247
1 parent d20e401 commit 257d3fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

park_api/cities/Basel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ def parse_html(xml_data):
2525
"address": entry['address'],
2626
"id": entry['id'],
2727
"state": translate_status(entry['status']),
28-
"free": entry['free'],
29-
"total": entry['total'],
28+
"free": entry['free'] or 0,
29+
"total": entry['total'] or 0,
3030
"coords": {
3131
"lat": entry['geo_point_2d']['lat'],
3232
"lng": entry['geo_point_2d']['lon']

0 commit comments

Comments
 (0)