ParkenDD / park-api-v3

MIT License
2 stars 1 forks source link

Plausibility check for realtime free values #220

Open the-infinity opened 1 day ago

the-infinity commented 1 day ago

Before saving, there should be a check if realtime values are higher then the actual capacity. The check should be done here: https://github.com/ParkenDD/park-api-v3/blob/main/webapp/services/import_service/generic/generic_import_service.py#L271 .

Following checks should be done:

Same for every sub-category (realtime_capacity_woman / realtime_free_capacity_woman / capacity_woman, ... etc).

AbdullahiFatola commented 12 hours ago

@the-infinity I have a created a PR for this. Kindly review if it is as described in the ticket.