Jared 3 years ago
parent
commit
4123ee293d
2 changed files with 4 additions and 3 deletions
  1. 3 2
      web/main.py
  2. 1 1
      web/static/index.html

+ 3 - 2
web/main.py

@@ -88,8 +88,9 @@ async def tree_list():
     return html
 
 @app.post("/proj_kw/",response_class=HTMLResponse)
-async def proj_kw(kw: str = Form(...),kws:Optional[str] = Form(None)):
-    kwlst=[]
+async def proj_kw(proj: str = Form(...),kws:Optional[str] = Form(None)):
+    print(proj)
+    print(kws)
 
 
 

+ 1 - 1
web/static/index.html

@@ -17,7 +17,7 @@
     專案(例如清原): <input type="text" id="proj" name="proj" value=""></br>
     關鍵字: </br>
     <textarea id="kws" name="kws" rows="10" cols="50"></textarea>
-
+</br>
     <input type="submit" value="gen">
 </form>