Your Name 3 年之前
父节点
当前提交
9baffcbbb7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      genjson/gen_json_alone.py

+ 1 - 1
genjson/gen_json_alone.py

@@ -21,7 +21,7 @@ db = dataset.connect('mysql://hhh7796hhh:lYmWsu^ujcA1@hhh-v57.cmab1ctkglka.ap-no
 #@app.get("/genjson")
 def genjson(filename: str = "realtime.json"):
 
-    jData = json.load(open('json/data.json', encoding='utf8'))
+    jData = json.load(open('../json/data.json', encoding='utf8'))
 
     records = db.query("SELECT * FROM _had where (now() between start_time and end_time or ( start_time is null and end_time is null) or ( start_time = '0000-00-00 00:00:00' and end_time = '0000-00-00 00:00:00')) and onoff='1' and adtype like '首八大%' ")