|
@@ -430,7 +430,7 @@ class SmartSwitchView(View):
|
|
redis_obj = RedisObject()
|
|
redis_obj = RedisObject()
|
|
timer_info = redis_obj.get_all_hash_data(key)
|
|
timer_info = redis_obj.get_all_hash_data(key)
|
|
if not timer_info:
|
|
if not timer_info:
|
|
- return response.json(0)
|
|
|
|
|
|
+ return response.json(173)
|
|
return response.json(0, timer_info)
|
|
return response.json(0, timer_info)
|
|
except Exception as e:
|
|
except Exception as e:
|
|
print(e)
|
|
print(e)
|