Skip to content

Commit

Permalink
Fix free and total null value
Browse files Browse the repository at this point in the history
ref #247
  • Loading branch information
jklmnn committed Feb 1, 2025
1 parent d20e401 commit 257d3fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions park_api/cities/Basel.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ def parse_html(xml_data):
"address": entry['address'],
"id": entry['id'],
"state": translate_status(entry['status']),
"free": entry['free'],
"total": entry['total'],
"free": entry['free'] or 0,
"total": entry['total'] or 0,
"coords": {
"lat": entry['geo_point_2d']['lat'],
"lng": entry['geo_point_2d']['lon']
Expand Down

0 comments on commit 257d3fb

Please sign in to comment.