From cf764275625032b0799be9e40f0b50e7af545430 Mon Sep 17 00:00:00 2001 From: "WQY\\qiong" Date: Wed, 1 Mar 2023 22:04:27 +0800 Subject: [PATCH] Add placeholder for tank --- api/s4_tanks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/s4_tanks.py b/api/s4_tanks.py index 31d53c9..7650520 100644 --- a/api/s4_tanks.py +++ b/api/s4_tanks.py @@ -192,6 +192,8 @@ def inp_out_tank(name: str) -> list[str]: min_vol = obj['min_vol'] vol_curve = obj['vol_curve'] if obj['vol_curve'] != None else '' overflow = obj['overflow'] if obj['overflow'] != None else '' + if vol_curve == '' and overflow != '': + vol_curve = '*' desc = ';' lines.append(f'{id} {elevation} {init_level} {min_level} {max_level} {diameter} {min_vol} {vol_curve} {overflow} {desc}') return lines