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 '首八大%' ")