Skip to content

Commit

Permalink
Fix Freiburg
Browse files Browse the repository at this point in the history
  • Loading branch information
jklmnn committed Feb 5, 2021
1 parent 3f2eb37 commit 418187a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions park_api/cities/Freiburg.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ def parse_html(source_json):
lot_free = int(feature['properties']['obs_free'])
lot_total = int(feature['properties']['obs_max'])

if last_updated < feature['properties']['obs_ts']:
last_updated = feature['properties']['obs_ts']
obs_ts = feature['properties']['obs_ts'].split('.')[0]
if last_updated < obs_ts:
last_updated = obs_ts

# please be careful about the state only being allowed to contain either open, closed or nodata
# should the page list other states, please map these into the three listed possibilities
Expand Down

0 comments on commit 418187a

Please sign in to comment.