Skip to content

Commit

Permalink
precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
kodflow committed Jan 22, 2024
1 parent 6d5939c commit 086b8b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def __init__(
else ParkingPlaces.Price(
currency=currency, amount=amount, start_time=start_time, end_time=end_time
)
)
)
if not total_places and any(n is not None for n in [available, occupied, available_PRM, occupied_PRM]):
self.total_places = (available or 0) + (occupied or 0) + (available_PRM or 0) + (occupied_PRM or 0)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def parking_space_availability_forseti_get_informations_test():
"startTime": "2019-04-01T00:00:00Z",
"endTime": "2019-04-01T23:59:59Z",
"amount": 6000,
}
},
},
],
"pagination": {"start_page": 0, "items_on_page": 25, "items_per_page": 25, "total_result": 1},
Expand Down

0 comments on commit 086b8b5

Please sign in to comment.