ck 4 years ago
parent
commit
47c516d361
1 changed files with 2 additions and 4 deletions
  1. 2 4
      handlers/ApiHandler.py

+ 2 - 4
handlers/ApiHandler.py

@@ -7,12 +7,10 @@ class YgApiHandler(BaseHandler,MysqlUtils):
 
     def post(self):
         print(self.get_args())
-        print(type(self.get_args()))
         path=self.get_args()["path"]
+        task_id=self.get_args()["taskId"]
         print(path)
-        self.quchen_text.execute(f"replace into yangguang_path (path) values ('{path}')")
+        self.quchen_text.execute(f"update yangguang_path set path='{path}' where task_id='{task_id}'")
         self.write(json.dumps({"code":200,"msg":"ok"}))
 
 
-
-