zhangdongming %!s(int64=3) %!d(string=hai) anos
pai
achega
5b68b8db9c
Modificáronse 2 ficheiros con 1 adicións e 4 borrados
  1. 0 3
      Controller/DetectControllerV2.py
  2. 1 1
      Service/EquipmentInfoService.py

+ 0 - 3
Controller/DetectControllerV2.py

@@ -167,9 +167,6 @@ class NotificationView(View):
             logger.info(redis_list)
             new_device_info_list = []
             local_date_now = str(datetime.datetime.fromtimestamp(int(n_time)).date())
-            timeArray = time.localtime(n_time)
-            str_time = time.strftime("%Y-%m-%d %H:%M:%S", timeArray)
-            logger.info('设备格式化后时间{},设备时间戳{}'.format(str_time, n_time))
             logger.info('日期{},时间戳{}'.format(local_date_now, n_time))
             for up in redis_list:
                 push_type = up['push_type']

+ 1 - 1
Service/EquipmentInfoService.py

@@ -27,7 +27,7 @@ class EquipmentInfoService:
         """
         logger = logging.getLogger('info')
         week = LocalDateTimeUtil.date_to_week(dt)
-        logger.info('本周{}'.format(week))
+        logger.info('本周{}'.format(str(week)))
         equipment_info = None
         if week == 1:
             equipment_info = EquipmentInfoMonday(**kwargs)