ck 4 anni fa
parent
commit
75818d84b8
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3 2
      handlers/ApiHandler.py

+ 3 - 2
handlers/ApiHandler.py

@@ -2,15 +2,16 @@ from handlers.HandlerBase import BaseHandler
 from model.DataBaseUtils import MysqlUtils
 import json
 import requests
+from model.DataBaseUtils import MysqlUtils
 
-class YgApiHandler(BaseHandler,MysqlUtils):
+class YgApiHandler(BaseHandler):
 
     def post(self):
         print(self.get_args())
         path=self.get_args()["path"]
         task_id=self.get_args()["taskId"]
         print(path)
-        self.quchen_text.execute(f"update yangguang_path set path='{path}' where task_id='{task_id}'")
+        MysqlUtils().quchen_text.execute(f"update yangguang_path set path='{path}' where task_id='{task_id}'")
         self.write(json.dumps({"code":200,"msg":"ok"}))