Browse Source

fix bool的读取逻辑

zhangbo 1 year ago
parent
commit
394a0342bc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      parameter_update.py

+ 1 - 1
parameter_update.py

@@ -68,7 +68,7 @@ def param_update_risk_filter_flag() -> bool:
     data = False
     if tmp is not None:
         try:
-            data = bool(tmp)
+            data = True if tmp.lower() == "true" else False
         except Exception as e:
             data = False
     return data