소스 검색

fix a bug

chenhaiyang 4 년 전
부모
커밋
fb3d36d7bd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/services/platform.py

+ 1 - 1
app/services/platform.py

@@ -65,7 +65,7 @@ class DataPlatformService(Service):
             latest_data = raw_info.get('Content')[-1].get('data')
             latest_time = raw_info.get('Content')[-1].get('receivetime')
             if arrow.get(latest_time, TIME_FMT).shift(minutes=15) < arrow.get(self._now_time, TIME_FMT):
-                logger.info(f'delayed data - {self._space_id}: ({latest_time}, {latest_data})')
+                logger.info(f'delayed data - {object_id}: ({latest_time}, {latest_data})')
             value = round_half_up(latest_data, 2)
 
         return value