Browse Source

更新 'app.py'

于小葵 11 months ago
parent
commit
74c6b464a7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app.py

+ 1 - 1
app.py

@@ -24,7 +24,7 @@ def ping():  # 运行的定时任务的函数
         url = i['url']
         r = requests.get(url,timeout=3)
         result.append({'url':url,'status_code':r.status_code,'name':name})
-    with open("static\data.json",'w+',encoding="utf-8") as f:
+    with open("static/data.json",'w+',encoding="utf-8") as f:
         f.write(json.dumps(result))
 
 @app.route("/")