ParkenDD / park-api-v3

MIT License
2 stars 1 forks source link

Add plausibility check for realtime_free_capacity values #222

Open AbdullahiFatola opened 19 hours ago

AbdullahiFatola commented 19 hours ago

This PR checks if realtime free capacity realtime_free_capacity values are higher than the actual capacity before saving. It sets the realtime capacity values to the value of the actual capacity if it is true. The same plausibilty check is applied to each capacity category e.g. realtime_free_capacity_woman, realtime_free_capacity_disabled etc.