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