chenjunkai 6 年之前
父節點
當前提交
f85968844a
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)