chenjunkai 6 năm trước cách đây
mục cha
commit
f85968844a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Controller/DetectController.py

+ 1 - 1
Controller/DetectController.py

@@ -144,7 +144,7 @@ class DetectControllerView(View):
                                                         uid=uid, m_code=m_code)
                     print(uid_app_qs)
                     if uid_app_qs.exists():
-                        update_dict = {status: 1}
+                        update_dict = {'status': 1}
                         if interval:
                             update_dict['interval'] = int(interval)
                         uid_app_qs.update(**update_dict)