Skip to content

Commit

Permalink
parking-free: Add referer header to prepare for history quota
Browse files Browse the repository at this point in the history
  • Loading branch information
clezag committed May 28, 2024
1 parent 31c36e0 commit 4840d8e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class FreeParkingSlotsCalculator:
FREE_URL = "/flat/ParkingStation,ParkingSensor/free/latest?limit=-1&where=sactive.eq.true&select=mvalidtime,tname,scode,stype,mperiod"

def fetchData(self, url):
r = requests.get(os.getenv("ODH_MOBILITY_API_NINJA") + url)
r = requests.get(os.getenv("ODH_MOBILITY_API_NINJA") + url, headers={"referer": "parking-free-elab"})
return r.json()['data'];

def getHistoryData(self, stationcode, period, fromTime):
Expand Down

0 comments on commit 4840d8e

Please sign in to comment.