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 02a5250 commit 6d5939c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,13 @@ def __init__(
if availability is not None:
self.availability = availability
if price is not None:
self.price = price if price else ParkingPlaces.Price(
currency=currency, amount=amount, start_time=start_time, end_time=end_time
)
self.price = (
price
if price
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 @@ -65,7 +65,7 @@ def parking_space_availability_forseti_get_informations_test():
"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 6d5939c

Please sign in to comment.