Explorar el Código

修复订单时间段显示-删除day+1

linhaohong hace 1 año
padre
commit
331df3dbee
Se han modificado 1 ficheros con 0 adiciones y 1 borrados
  1. 0 1
      AdminController/CloudServiceManage/AgentDeviceController.py

+ 0 - 1
AdminController/CloudServiceManage/AgentDeviceController.py

@@ -192,7 +192,6 @@ class AgentDeviceView(View):
 
 
         # 补全时间段内所有可能的时间单位
         # 补全时间段内所有可能的时间单位
         current_time = start_time
         current_time = start_time
-        end_time += relativedelta(days=1)  # 包括结束日期
 
 
         while current_time < end_time:
         while current_time < end_time:
             time_key = current_time.strftime(time_format[time_unit]) if time_unit != "quarter" else time_format[
             time_key = current_time.strftime(time_format[time_unit]) if time_unit != "quarter" else time_format[