Skip to content

Commit

Permalink
fixed the arch_name inferance being unstripped
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Jul 20, 2024
1 parent 331dfc5 commit 28bb3ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/processors/tumonline.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def _maybe_set_alt_name(room_code: str, arch_name_parts: tuple[str, str], room:
if len(alt_parts) < 2:
return
if alt_parts[0].lower() == arch_name_parts[0].lower():
room.alt_name = ", ".join(alt_parts[1:])
room.alt_name = ", ".join(alt_parts[1:]).strip()
return
# The most common mismatch is if the roomname in the alt_name is like "L516" and the arch_name starts with "L 516".
# In this case we change the arch_name to the format without a space
Expand Down

0 comments on commit 28bb3ad

Please sign in to comment.