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

+ 3 - 2
handlers/ApiHandler.py

@@ -7,5 +7,6 @@ class ApiHandler(BaseHandler,MysqlUtils):
     def post(self):
         print(self.get_args())
         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}')")
+