Upper key word

This commit is contained in:
WQY\qiong
2022-11-18 21:07:06 +08:00
parent 466903c900
commit 1ee4a83d4c
7 changed files with 7 additions and 7 deletions

View File

@@ -139,7 +139,7 @@ class InpPipe:
self.roughness = float(tokens[5])
self.minor_loss = float(tokens[6])
# status is must-have, here fix input
self.status = str(tokens[7]) if num_without_desc >= 8 else PIPE_STATUS_OPEN
self.status = str(tokens[7].upper()) if num_without_desc >= 8 else PIPE_STATUS_OPEN
self.desc = str(tokens[-1]) if has_desc else None