소스 검색

移除thisValue为0的限制

卢祥辉 1 주 전
부모
커밋
51fa8a418c
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  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)