|
@@ -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[
|