From 0fd75701f0d032e7a61f3d5d694d70a7380b9a67 Mon Sep 17 00:00:00 2001 From: "WQY\\qiong" Date: Wed, 1 Mar 2023 21:20:46 +0800 Subject: [PATCH] Add placeholder for tank --- api/s4_tanks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/s4_tanks.py b/api/s4_tanks.py index 3833c84..31d53c9 100644 --- a/api/s4_tanks.py +++ b/api/s4_tanks.py @@ -163,7 +163,7 @@ class InpTank: self.max_level = float(tokens[4]) self.diameter = float(tokens[5]) self.min_vol = float(tokens[6]) - self.vol_curve = str(tokens[7]) if num_without_desc >= 8 else None + self.vol_curve = str(tokens[7]) if num_without_desc >= 8 and tokens[7] != '*' else None self.overflow = str(tokens[8].upper()) if num_without_desc >= 9 else None self.desc = str(tokens[-1]) if has_desc else None