|
@@ -1209,6 +1209,7 @@ class SmartSceneView(View):
|
|
|
condition['time'] = 'date'
|
|
|
# 根据时间戳和时区获取年月日,拼接由分钟转换出来的时间
|
|
|
time_string = CommonService.get_date_from_timestamp(now_time, tz)
|
|
|
+ time_string = time_string[:time_string.index('')]
|
|
|
time_string += ' {:02d}:{:02d}:00'.format(hour, minute)
|
|
|
time_stamp = CommonService.convert_to_timestamp(tz, time_string)
|
|
|
if time_stamp < now_time:
|
|
@@ -1404,7 +1405,7 @@ class SmartSceneView(View):
|
|
|
'status': 1
|
|
|
}
|
|
|
url = DETECT_PUSH_DOMAINS + 'gatewayService/sceneLogPush'
|
|
|
- req = requests.post(url=url, data=data, timeout=8)
|
|
|
+ requests.post(url=url, data=data, timeout=8)
|
|
|
|
|
|
@staticmethod
|
|
|
def del_aps_job(scene_data_dict):
|