Skip to content

Commit

Permalink
Fix missing space in level overview
Browse files Browse the repository at this point in the history
There is a space missing when „Meistbenutzte Adresse“ has no state.
  • Loading branch information
FestplattenSchnitzel committed Apr 11, 2024
1 parent 3170a78 commit 59eb1c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pycroft/lib/facilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ class RoomAddressSuggestion:

def __str__(self) -> str:
return f"{self.street} {self.number}, {self.zip_code} {self.city}," \
+ (f" {self.state}, " if self.state else "") \
+ f"{self.country}"
+ (f" {self.state}," if self.state else "") \
+ f" {self.country}"


def suggest_room_address_data(building: Building) -> RoomAddressSuggestion | None:
Expand Down

0 comments on commit 59eb1c0

Please sign in to comment.