ck 4 years ago
parent
commit
45a9ef7ea0
1 changed files with 3 additions and 2 deletions
  1. 3 2
      handlers/ApiHandler.py

+ 3 - 2
handlers/ApiHandler.py

@@ -7,5 +7,6 @@ class ApiHandler(BaseHandler,MysqlUtils):
     def post(self):
     def post(self):
         print(self.get_args())
         print(self.get_args())
         path=self.get_args()["path"]
         path=self.get_args()["path"]
-        self.quchen_text.execute(f"replace into yangguang_path values ({path})")
-        
+        print(path)
+        self.quchen_text.execute(f"replace into yangguang_path (path) values ('{path}')")
+