peng преди 1 година
родител
ревизия
88bfe20959
променени са 1 файла, в които са добавени 0 реда и са изтрити 3 реда
  1. 0 3
      Controller/SensorGateway/SmartSwitchController.py

+ 0 - 3
Controller/SensorGateway/SmartSwitchController.py

@@ -488,9 +488,6 @@ class SmartSwitchView(View):
                         redis_obj.set_hash_data(key, redis_dict)
                         redis_obj.set_persist(key)
                         return response.json(0, redis_dict)
-                timer_exist = redis_obj.get_all_hash_data(key)
-                if timer_exist:
-                    return response.json(174)
                 redis_obj.set_hash_data(key, redis_dict)
                 redis_obj.set_expire(key, countdown_time)
                 msg = {'device_switch': actions, 'task_id': task_id}