Browse Source

移除thisValue为0的限制

卢祥辉 1 week ago
parent
commit
51fa8a418c
1 changed files with 3 additions and 3 deletions
  1. 3 3
      main.py

+ 3 - 3
main.py

@@ -315,9 +315,9 @@ def call_addpointdatum(basedataportal_base_url: str, records: list[dict], id_to_
             LOGGER.warning("跳过字段不完整的点位: %s", to_log_text(record))
             continue
 
-        if this_value == 0:
-            LOGGER.info("跳过 thisValue 为 0 的点位: %s", to_log_text(record))
-            continue
+        #if this_value == 0:
+            #LOGGER.info("跳过 thisValue 为 0 的点位: %s", to_log_text(record))
+            #continue
 
         full_time_ts = local_timestamp(parse_full_time(full_time))
         LOGGER.info("点位数据: name=%s fullTime=%s thisValue=%s", name, full_time, this_value)